]> git.imager.perl.org - imager.git/blobdiff - imageri.h
(rt #127575) link to Imager::Install from Imager::Files
[imager.git] / imageri.h
index 6ef28a7aa2ceef5db09a1a80644e69aa3878b547..2848bcfc944cd9aba952f7ef6f59a32955dcfb3f 100644 (file)
--- a/imageri.h
+++ b/imageri.h
@@ -118,8 +118,14 @@ typedef struct im_context_tag {
   size_t error_alloc[IM_ERROR_COUNT];
   i_errmsg error_stack[IM_ERROR_COUNT];
 #ifdef IMAGER_LOG
-  int log_level;
+  /* the log file and level for this context */
   FILE *lg_file;
+  int log_level;
+
+  /* whether we own the lg_file, false for stderr and for cloned contexts */
+  int own_log;
+
+  /* values supplied by lhead */
   const char *filename;
   int line;
 #endif