* Many fixes for r_magic - Proper support for --with-sysmagic - Fix bindings build - Fix magic files to work with GNU file - Add magic instance in RCore - Use unowned instead of weak in vapi (deprecated)
17 lines
527 B
Vala
17 lines
527 B
Vala
/* radare - LGPL - Copyright 2011 pancake<@nopcode.org> */
|
|
namespace Radare {
|
|
[Compact]
|
|
[CCode (cheader_filename="r_magic.h", cname="RMagic", free_function="r_magic_free", cprefix="r_magic_")]
|
|
public class RMagic {
|
|
public RMagic(int flags);
|
|
|
|
public unowned string file(string f);
|
|
public unowned string descriptor(int d);
|
|
public unowned string buffer(void *buffer, size_t n);
|
|
|
|
public int load(string file);
|
|
public int check(string file);
|
|
public int compile(string file);
|
|
public void setflags(int flags);
|
|
}
|
|
}
|