/usr/share/vala/vapi/r_lib.vapi is in radare2-vala 0.9.6-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | /* radare - LGPL - Copyright 2009-2012 pancake<nopcode.org> */
namespace Radare {
[Compact]
[CCode (cheader_filename="r_lib.h", cprefix="r_lib_", cname="RLib", free_function="r_lib_free")]
public class RLib {
public RLib (string symname);
public bool close(string file);
public int opendir(string path);
public static string? path(string libname);
//public string types_get(int idx);
/* lowlevel api */
public static void* dl_open(string libname);
public void* dl_sym(string symname);
public static bool dl_close(void *handler);
public static bool dl_check_filename(string file);
/* handlers */
// we need delegates here (function pointerz)
// public bool add_handler(int type, string desc, /* */, void* user);
public bool del_handler(int type);
//public Plugin get_handler(int type);
//public struct Struct { }
/*
[Compact]
[CCode (cname="RLibHandler")]
public class Plugin {
int type;
string desc;
void* user;
// constructor
// destructor
}*/
}
[Compact]
[CCode (cheader_filename="r_lib.h", cname="RLibStruct")]
public struct RLibStruct {
public RLibType type;
public void *data;
}
[CCode (cprefix="R_LIB_TYPE_", cname="int")]
public enum RLibType {
IO,
DBG,
LANG,
ASM,
ANAL,
PARSE,
BIN,
BP,
SYSCALL,
FASTCALL,
CRYPTO,
CMD,
LAST
}
}
|