summaryrefslogtreecommitdiff
path: root/dmagick/c/log.d
diff options
context:
space:
mode:
authorMike Wey2011-01-08 17:48:30 +0100
committerMike Wey2011-01-08 17:48:30 +0100
commitcbac78bbec726017355cb455a776f193e7fc3022 (patch)
treea41c564c7ef5aec9dd2b18e58e94b213193044be /dmagick/c/log.d
initial checkin
Diffstat (limited to 'dmagick/c/log.d')
-rw-r--r--dmagick/c/log.d56
1 files changed, 56 insertions, 0 deletions
diff --git a/dmagick/c/log.d b/dmagick/c/log.d
new file mode 100644
index 0000000..d7db729
--- /dev/null
+++ b/dmagick/c/log.d
@@ -0,0 +1,56 @@
+module dmagick.c.log;
+
+import core.stdc.stdio;
+import core.vararg;
+
+import dmagick.c.exception;
+import dmagick.c.magickType;
+
+extern(C)
+{
+ enum LogEventType
+ {
+ UndefinedEvents,
+ NoEvents = 0x00000,
+ TraceEvent = 0x00001,
+ AnnotateEvent = 0x00002,
+ BlobEvent = 0x00004,
+ CacheEvent = 0x00008,
+ CoderEvent = 0x00010,
+ ConfigureEvent = 0x00020,
+ DeprecateEvent = 0x00040,
+ DrawEvent = 0x00080,
+ ExceptionEvent = 0x00100,
+ ImageEvent = 0x00200,
+ LocaleEvent = 0x00400,
+ ModuleEvent = 0x00800,
+ PolicyEvent = 0x01000,
+ ResourceEvent = 0x02000,
+ TransformEvent = 0x04000,
+ UserEvent = 0x09000,
+ WandEvent = 0x10000,
+ X11Event = 0x20000,
+ AllEvents = 0x7fffffff
+ }
+
+ struct LogInfo {}
+
+ char** GetLogList(const char*, size_t*, ExceptionInfo*);
+
+ const(char*) GetLogName();
+ const(char*) SetLogName(const char*);
+
+ const(LogInfo**) GetLogInfoList(const char*, size_t*, ExceptionInfo*);
+
+ LogEventType SetLogEventMask(const char*);
+
+ MagickBooleanType IsEventLogging();
+ MagickBooleanType ListLogInfo(FILE*, ExceptionInfo*);
+ MagickBooleanType LogComponentGenesis();
+ MagickBooleanType LogMagickEvent(const LogEventType, const char*, const char*, const size_t, const char*, ...);
+ MagickBooleanType LogMagickEventList(const LogEventType, const char*, const char*, const size_t, const char*, va_list);
+
+ void CloseMagickLog();
+ void LogComponentTerminus();
+ void SetLogFormat(const char*);
+}