X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fbd_bdcff.h;h=c12c875e5aa122a5b405a339f4815e0640a7323f;hb=refs%2Fheads%2Fmaster-next-major-release;hp=d5b73c424ec41d6d9597db41013d4bedbdd8bbc0;hpb=bd560c53129c84976b87827f1978ddf8de4ed57a;p=rocksndiamonds.git diff --git a/src/game_bd/bd_bdcff.h b/src/game_bd/bd_bdcff.h index d5b73c42..c12c875e 100644 --- a/src/game_bd/bd_bdcff.h +++ b/src/game_bd/bd_bdcff.h @@ -17,6 +17,22 @@ #ifndef BD_BDCFF_H #define BD_BDCFF_H +typedef struct _gd_ptr_array +{ + void **data; + unsigned int size; + unsigned int size_initial; + unsigned int size_allocated; +} GdPtrArray; + +GdPtrArray *gd_ptr_array_sized_new(unsigned int size); +GdPtrArray *gd_ptr_array_new(void); +void gd_ptr_array_add(GdPtrArray *array, void *data); +boolean gd_ptr_array_remove(GdPtrArray *array, void *data); +void gd_ptr_array_free(GdPtrArray *array, boolean free_data); +#define gd_ptr_array_index(array, index) ((array)->data)[index] + boolean gd_caveset_load_from_bdcff(const char *contents); +GdPtrArray *gd_caveset_save_to_bdcff(void); #endif // BD_BDCFF_H