]> git.imager.perl.org - imager.git/blobdiff - lib/Imager/APIRef.pod
add the context slot APIs
[imager.git] / lib / Imager / APIRef.pod
index 1f61bb145280aee1c7f7b1d21e189b1c33b1bfb4..e0341e1af74d265e8697b8a92f05d282aaa20d12 100644 (file)
@@ -2290,6 +2290,37 @@ X<im_context_refinc API>
 Add a new reference to the context.
 
 
+=for comment
+From: File context.c
+
+=item im_context_slot_get(ctx, slot)
+
+Retrieve the value previously stored in the given slot of the context
+object.
+
+
+=for comment
+From: File context.c
+
+=item im_context_slot_new(destructor)
+
+Allocate a new context-local-storage slot.
+
+
+=for comment
+From: File context.c
+
+=item im_context_slot_set(slot, value)
+
+Set the value of a slot.
+
+Returns true on success.
+
+Aborts if the slot supplied is invalid.
+
+If reallocation of slot storage fails, returns false.
+
+
 =for comment
 From: File context.c