diff options
Diffstat (limited to 'apps/plugins/lib/buflib.h')
-rw-r--r-- | apps/plugins/lib/buflib.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/lib/buflib.h b/apps/plugins/lib/buflib.h index ddadb1b9a9..d4ef4af9ff 100644 --- a/apps/plugins/lib/buflib.h +++ b/apps/plugins/lib/buflib.h | |||
@@ -38,6 +38,7 @@ struct buflib_context | |||
38 | union buflib_data *first_free_handle; | 38 | union buflib_data *first_free_handle; |
39 | union buflib_data *last_handle; | 39 | union buflib_data *last_handle; |
40 | union buflib_data *first_free_block; | 40 | union buflib_data *first_free_block; |
41 | union buflib_data *buf_start; | ||
41 | union buflib_data *alloc_end; | 42 | union buflib_data *alloc_end; |
42 | bool compact; | 43 | bool compact; |
43 | }; | 44 | }; |
@@ -45,6 +46,10 @@ struct buflib_context | |||
45 | void buflib_init(struct buflib_context *context, void *buf, size_t size); | 46 | void buflib_init(struct buflib_context *context, void *buf, size_t size); |
46 | int buflib_alloc(struct buflib_context *context, size_t size); | 47 | int buflib_alloc(struct buflib_context *context, size_t size); |
47 | void buflib_free(struct buflib_context *context, int handle); | 48 | void buflib_free(struct buflib_context *context, int handle); |
49 | void* buflib_buffer_out(struct buflib_context *ctx, size_t *size); | ||
50 | void buflib_buffer_in(struct buflib_context *ctx, int size); | ||
51 | |||
52 | |||
48 | 53 | ||
49 | /* always_inline is due to this not getting inlined when not optimizing, which | 54 | /* always_inline is due to this not getting inlined when not optimizing, which |
50 | * leads to an unresolved reference since it doesn't exist as a non-inline | 55 | * leads to an unresolved reference since it doesn't exist as a non-inline |