* 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