]> rtime.felk.cvut.cz Git - frescor/frsh.git/blobdiff - fres/contract/fres_container_internal.h
Fixed the number of available container blocks
[frescor/frsh.git] / fres / contract / fres_container_internal.h
index 7684471122a4e7ed6339bb90624b39ca40651a85..19ac8a8ad05f55ff1ec5bac4626d36deb329759c 100644 (file)
@@ -105,13 +105,17 @@ struct fres_block {
  * blocks of the same type.
  */
 struct fres_container {
-       struct fres_block blocks[FRES_NUM_BLOCKS];
+       struct fres_block blocks[__FRES_NUM_BLOCKS];
 };
 
 /** Checks wheder the @a type is valid number of the block */
 #define FRES_BLOCK_TYPE_VALID(type)    \
-       ((type) < FRES_NUM_BLOCKS &&    \
+       ((type) < __FRES_NUM_BLOCKS &&  \
         (type) >= 0)
 
+int
+fres_block_duplicate(struct fres_block *dest,
+                    const struct fres_block *source,
+                    enum fres_block_type type);
 
 #endif