PageRenderTime 17ms CodeModel.GetById 13ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/dmagick/c/magic.d

http://github.com/MikeWey/DMagick
D | 50 lines | 36 code | 14 blank | 0 comment | 0 complexity | 023f13a3a5ee0163360f7306aa35543b MD5 | raw file
 1module dmagick.c.magic;
 2
 3import core.stdc.stdio;
 4import core.vararg;
 5
 6import dmagick.c.exception;
 7import dmagick.c.magickType;
 8
 9extern(C)
10{
11	struct MagicInfo
12	{
13		char*
14			path,
15			name,
16			target;
17
18		ubyte*
19			magic;
20
21		size_t
22			length;
23
24		MagickOffsetType
25			offset;
26
27		MagickBooleanType
28			exempt,
29			stealth;
30
31		MagicInfo*
32			previous,
33			next;
34
35		size_t
36			signature;
37	}
38
39	char** GetMagicList(const(char)*, size_t*, ExceptionInfo*);
40
41	const(char)* GetMagicName(const(MagicInfo)*);
42
43	MagickBooleanType ListMagicInfo(FILE*, ExceptionInfo*);
44	MagickBooleanType MagicComponentGenesis();
45
46	const(MagicInfo)*  GetMagicInfo(const(ubyte)*, const size_t, ExceptionInfo*);
47	const(MagicInfo)** GetMagicInfoList(const(char)*, size_t*, ExceptionInfo*);
48
49	void MagicComponentTerminus();
50}