]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - include/fna.h
fna_vres_id_t definition depends on kind of FRSH implementations
[frescor/fna.git] / include / fna.h
index 475e7662ecc4e76bb7965ab79729601bdf1028c5..25992a81dc1913501bf69aa8ca847d3c9072f1f1 100644 (file)
@@ -137,6 +137,7 @@ typedef int fna_init_t(const frsh_resource_id_t resource_id);
  * @{
  **/
 
+#ifndef FRSH_FORB
 /**
  * fna_vres_id_t
  *
@@ -146,6 +147,13 @@ typedef int fna_init_t(const frsh_resource_id_t resource_id);
  *
  **/
 typedef uint16_t fna_vres_id_t;
+#else
+/**
+ * In FRSH_FORB implementation, we do not distinguish between vreses
+ * of different resources.
+ */
+typedef frsh_vres_id_t fna_vres_id_t;
+#endif
 
 /**
  * fna_contract_negotiate()