]> git.imager.perl.org - imager.git/blobdiff - imager.h
add the context slot APIs
[imager.git] / imager.h
index 6d003bbda7d0c3f7a80ff7a1f05ed8749902e03c..f305fb13138b398c50889b738571a338b0560d64 100644 (file)
--- a/imager.h
+++ b/imager.h
@@ -386,6 +386,9 @@ extern im_context_t im_context_new(void);
 extern void im_context_refinc(im_context_t ctx, const char *where);
 extern void im_context_refdec(im_context_t ctx, const char *where);
 extern im_context_t im_context_clone(im_context_t ctx, const char *where);
 extern void im_context_refinc(im_context_t ctx, const char *where);
 extern void im_context_refdec(im_context_t ctx, const char *where);
 extern im_context_t im_context_clone(im_context_t ctx, const char *where);
+extern im_slot_t im_context_slot_new(im_slot_destroy_t);
+extern void *im_context_slot_get(im_context_t ctx, im_slot_t slot);
+extern int im_context_slot_set(im_context_t ctx, im_slot_t slot, void *);
 
 extern im_context_t (*im_get_context)(void);
 
 
 extern im_context_t (*im_get_context)(void);