#ifndef TC_BLOCK_H #define TC_BLOCK_H #include #include #include typedef struct tc_block_attribute { uint32_t len_name; uint32_t len_content; char *name; void *content; } tc_block_attribute_s; typedef struct tc_block_entry { char *name; uint32_t identifier; uint32_t attributes_capacity; uint32_t num_attributes; tc_block_attribute_s *attributes; } tc_block_entry_s; typedef struct tc_block_registry { uint32_t blocks_capacity; uint32_t num_blocks; tc_block_entry_s *blocks; } tc_block_registry_s; tc_block_entry_s tc_new_block_entry (char *name); void tc_add_attribute_to_block (tc_block_entry_s *entry, tc_block_attribute_s attribute); tc_block_entry_s * tc_get_block (char *name); tc_block_registry_s tc_init_blocks (); #endif