1 [CCode (cheader_filename = "magic.h")]
4 [CCode (cname = "struct magic_set", cprefix = "magic_", free_function = "magic_close")]
6 [CCode (cname = "magic_open")]
7 public Magic (Flags flags = Flags.NONE);
8 public unowned string? error ();
10 public unowned string? file (string filename);
11 public unowned string? buffer (void *buffer, size_t length);
12 public int setflags (int flags);
13 public int check (string? filename = null);
14 public int compile (string? filename = null);
15 public int load (string? filename = null);
19 [CCode (cprefix = "MAGIC_", cname = "int", has_type_id = false)]