Change state manager interface to match my interface. Next up is inlining those function pointers.

This commit is contained in:
Alcaro 2014-02-18 08:22:36 +01:00
parent abb3a45a9a
commit 1fdc8f1144

View File

@ -21,11 +21,13 @@
typedef struct state_manager state_manager_t;
// Always pass in at least 4-byte aligned data and sizes!
// Always pass in at least 2-byte aligned data! Size can be anything.
state_manager_t *state_manager_new(size_t state_size, size_t buffer_size, void *init_buffer);
state_manager_t *state_manager_new(size_t state_size, size_t buffer_size);
void state_manager_free(state_manager_t *state);
bool state_manager_pop(state_manager_t *state, void **data);
bool state_manager_push(state_manager_t *state, const void *data);
void *state_manager_push_where(state_manager_t *state);
bool state_manager_push(state_manager_t *state);
void state_manager_capacity(state_manager_t *state, unsigned int * entries, size_t * bytes, bool * full);
#endif