1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
module dmagick.c.log;
import core.stdc.stdio;
import core.vararg;
import dmagick.c.exception;
import dmagick.c.magickType;
import dmagick.c.magickVersion;
extern(C)
{
static if (MagickLibVersion >= 0x663)
{
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
}
}
else
{
enum LogEventType
{
UndefinedEvents,
NoEvents = 0x00000,
TraceEvent = 0x00001,
AnnotateEvent = 0x00002,
BlobEvent = 0x00004,
CacheEvent = 0x00008,
CoderEvent = 0x00010,
ConfigureEvent = 0x00020,
DeprecateEvent = 0x00040,
DrawEvent = 0x00080,
ExceptionEvent = 0x00100,
LocaleEvent = 0x00200,
ModuleEvent = 0x00400,
PolicyEvent = 0x00800,
ResourceEvent = 0x01000,
TransformEvent = 0x02000,
UserEvent = 0x04000,
WandEvent = 0x08000,
X11Event = 0x10000,
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)*);
}
|