rizin/r2-bindings/vapi/r_magic.vapi
pancake 7dbab2f3bc * Add missing r_anal_diff_setup_i()
* 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)
2011-10-18 22:07:53 +02:00

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);
}
}