]> git.imager.perl.org - imager.git/blobdiff - imageri.h
avoid re-entrancy into giflib using the mutex API
[imager.git] / imageri.h
index 0e9815e955d71b914176d4aa92537e654ea5eeb3..59d333a70f8202baa728035c94a5cc564862a1f2 100644 (file)
--- a/imageri.h
+++ b/imageri.h
@@ -6,6 +6,7 @@
 #define IMAGEI_H_
 
 #include "imager.h"
+#include <stddef.h>
 
 /* wrapper functions that implement the floating point sample version of a 
    function in terms of the 8-bit sample version
@@ -119,7 +120,17 @@ typedef struct im_context_tag {
 #ifdef IMAGER_LOG
   int log_level;
   FILE *lg_file;
+  const char *filename;
+  int line;
 #endif
+
+  /* file size limits */
+  i_img_dim max_width, max_height;
+  size_t max_bytes;
+
+  ptrdiff_t refcount;
 } im_context_struct;
 
+#define DEF_BYTES_LIMIT 0x40000000
+
 #endif