diff options
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 9bfe3fa16d..d566a5dc13 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -91,6 +91,7 @@ void* plugin_get_buffer(size_t *buffer_size); | |||
91 | #include "list.h" | 91 | #include "list.h" |
92 | #include "tree.h" | 92 | #include "tree.h" |
93 | #include "color_picker.h" | 93 | #include "color_picker.h" |
94 | #include "buflib.h" | ||
94 | #include "buffering.h" | 95 | #include "buffering.h" |
95 | #include "tagcache.h" | 96 | #include "tagcache.h" |
96 | #include "viewport.h" | 97 | #include "viewport.h" |
@@ -928,6 +929,23 @@ struct plugin_api { | |||
928 | the API gets incompatible */ | 929 | the API gets incompatible */ |
929 | struct entry* (*tree_get_entries)(struct tree_context* t); | 930 | struct entry* (*tree_get_entries)(struct tree_context* t); |
930 | struct entry* (*tree_get_entry_at)(struct tree_context* t, int index); | 931 | struct entry* (*tree_get_entry_at)(struct tree_context* t, int index); |
932 | |||
933 | /* the buflib memory management library */ | ||
934 | void (*buflib_init)(struct buflib_context* ctx, void* buf, size_t size); | ||
935 | size_t (*buflib_available)(struct buflib_context* ctx); | ||
936 | int (*buflib_alloc)(struct buflib_context* ctx, size_t size); | ||
937 | int (*buflib_alloc_ex)(struct buflib_context* ctx, size_t size, | ||
938 | const char* name, struct buflib_callbacks *ops); | ||
939 | int (*buflib_alloc_maximum)(struct buflib_context* ctx, const char* name, | ||
940 | size_t* size, struct buflib_callbacks *ops); | ||
941 | void (*buflib_buffer_in)(struct buflib_context* ctx, int size); | ||
942 | void* (*buflib_buffer_out)(struct buflib_context* ctx, size_t* size); | ||
943 | int (*buflib_free)(struct buflib_context* ctx, int handle); | ||
944 | bool (*buflib_shrink)(struct buflib_context* ctx, int handle, | ||
945 | void* new_start, size_t new_size); | ||
946 | void* (*buflib_get_data)(struct buflib_context* ctx, int handle); | ||
947 | const char* (*buflib_get_name)(struct buflib_context* ctx, int handle); | ||
948 | |||
931 | }; | 949 | }; |
932 | 950 | ||
933 | /* plugin header */ | 951 | /* plugin header */ |