From f25a735f933fe206b963e0a2f30d8c210c017279 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Fri, 29 Jul 2011 22:23:48 +0000 Subject: [PATCH] added structs for remote_device_db_memory. don't throw error if struct type has no entries defined --- src/btstack_memory_generator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/btstack_memory_generator.py b/src/btstack_memory_generator.py index e0f810083..e6cb06679 100755 --- a/src/btstack_memory_generator.py +++ b/src/btstack_memory_generator.py @@ -21,8 +21,6 @@ void * btstack_memory_STRUCT_NAME_get(void){ void btstack_memory_STRUCT_NAME_free(void *STRUCT_NAME){ free(STRUCT_NAME); } -#else -#error BTstack needs at least one STRUCT_TYPE, but neither POOL_COUNT nor HAVE_MALLOC are defined #endif """ @@ -37,7 +35,7 @@ def replacePlaceholder(template, struct_name): snippet = template.replace("STRUCT_TYPE", struct_type).replace("STRUCT_NAME", struct_name).replace("POOL_COUNT", pool_count) return snippet -list_of_structs = [ "hci_connection", "l2cap_service", "l2cap_channel", "rfcomm_multiplexer", "rfcomm_service", "rfcomm_channel" ] +list_of_structs = [ "hci_connection", "l2cap_service", "l2cap_channel", "rfcomm_multiplexer", "rfcomm_service", "rfcomm_channel", "db_mem_device", "db_mem_service"] print "// header file" for struct_name in list_of_structs: