From fba11842bc393f8819068e16874f2b793f515612 Mon Sep 17 00:00:00 2001 From: doomchild Date: Thu, 26 Aug 2010 10:27:41 -0500 Subject: [PATCH] add allocator callbacks for t_feature, t_hotkey, and t_screen --- library/DFTypes_C.cpp | 4 ++++ library/include/dfhack-c/DFTypes_C.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/library/DFTypes_C.cpp b/library/DFTypes_C.cpp index 9957ef0a1..9677ae9f1 100644 --- a/library/DFTypes_C.cpp +++ b/library/DFTypes_C.cpp @@ -57,6 +57,10 @@ int (*alloc_matgloss_buffer_callback)(t_matgloss*, uint32_t) = NULL; int (*alloc_descriptor_buffer_callback)(t_descriptor_color*, uint32_t) = NULL; int (*alloc_matgloss_other_buffer_callback)(t_matglossOther*, uint32_t) = NULL; +int (*alloc_t_feature_buffer_callback)(t_feature*, uint32_t) = NULL; +int (*alloc_t_hotkey_buffer_callback)(t_hotkey*, uint32_t) = NULL; +int (*alloc_t_screen_buffer_callback)(t_screen*, uint32_t) = NULL; + int (*alloc_t_customWorkshop_buffer_callback)(t_customWorkshop*, uint32_t) = NULL; int (*alloc_t_material_buffer_callback)(t_material*, uint32_t) = NULL; diff --git a/library/include/dfhack-c/DFTypes_C.h b/library/include/dfhack-c/DFTypes_C.h index 112e195d4..4bb9676bf 100644 --- a/library/include/dfhack-c/DFTypes_C.h +++ b/library/include/dfhack-c/DFTypes_C.h @@ -49,6 +49,10 @@ DFHACK_EXPORT extern int (*alloc_matgloss_buffer_callback)(t_matgloss*, uint32_t DFHACK_EXPORT extern int (*alloc_descriptor_buffer_callback)(t_descriptor_color*, uint32_t); DFHACK_EXPORT extern int (*alloc_matgloss_other_buffer_callback)(t_matglossOther*, uint32_t); +DFHACK_EXPORT extern int (*alloc_t_feature_buffer_callback)(t_feature*, uint32_t); +DFHACK_EXPORT extern int (*alloc_t_hotkey_buffer_callback)(t_hotkey*, uint32_t); +DFHACK_EXPORT extern int (*alloc_t_screen_buffer_callback)(t_screen*, uint32_t); + struct t_customWorkshop { uint32_t index;