/usr/share/vala/vapi/r_bin.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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | /* radare - LGPL - Copyright 2009-2013 - nibble */
namespace Radare {
[Compact]
[CCode (cheader_filename="r_bin.h,r_list.h,r_types_base.h", cname="RBin", free_function="r_bin_free", cprefix="r_bin_")]
public class RBin {
[CCode (cprefix="R_BIN_SYM_")]
public enum Sym {
ENTRY,
INIT,
MAIN,
FINI,
LAST
}
public unowned string file;
public RBin.Arch cur;
public int narch;
public RBin();
public uint64 wr_scn_resize (string name, uint64 size);
public int wr_rpath_del ();
public int wr_output (string filename);
public int load(string file, bool dummy);
public RBuffer create(uint8 *code, int codelen, uint8 *data, int datalen);
public int use_arch(string arch, int bits, string name);
public int select(string arch, int bits, string name);
public int select_idx(int idx);
public int list();
public uint64 get_baddr();
public RBin.Addr get_sym(int sym); // XXX: use RBin.Sym here ?
public RList<RBin.Addr> get_entries();
public RList<RBin.Field> get_fields();
public RList<RBin.Import> get_imports();
public RList<RBin.Section> get_sections();
public RList<RBin.String> get_strings();
public RList<RBin.Symbol> get_symbols();
public RList<RBin.Reloc> get_relocs();
public RList<string> get_libs();
public RBin.Info get_info();
public int is_big_endian();
public int is_stripped();
public int is_static();
public int has_dbg_linenums();
public int has_dbg_syms();
public int has_dbg_relocs();
public int meta_get_line(uint64 addr, ref string file, int len, out int line);
public string meta_get_source_line(uint64 addr);
public RBin.Object get_object ();
[CCode (cname="RBinArch", free_function="", ref_function="", unref_function="")]
public struct Arch {
RBuffer buf;
public unowned string file;
public int size;
public uint64 offset;
public RBin.Object o;
/** string?? this is hack coz swig dislikes void* */
public weak string bin_obj;
public Plugin curplugin;
}
[CCode (cname="RBinPlugin", free_function="", ref_function="", unref_function="")]
public class Plugin {
}
[CCode (cname="RBinDwarfRow", free_function="", ref_function="", unref_function="")]
public class DwarfRow {
public uint64 address;
public string file;
public int line;
public int column;
}
[CCode (cname="RBinClass", free_function="", ref_function="", unref_function="")]
public class Class {
public string name;
public string super;
public int index;
public RList<Symbol> methods;
public RList<Field> fields;
public bool visibility;
}
[CCode (cname="RBinObject", free_function="", ref_function="", unref_function="")]
public class Object {
public uint64 baddr;
public int size;
public RList<RBin.Section> sections;
public RList<RBin.Import> imports;
public RList<RBin.Symbol> symbols;
//public RList<RBin.Symbol> entries;
public RList<RBin.Addr> entries;
public RList<RBin.Field> fields;
public RList<RBin.Symbol> libs;
public RList<RBin.Reloc> relocs;
public RList<RBin.String> strings;
public RList<RBin.Class> classes;
public RList<RBin.DwarfRow> lines;
public RBin.Info info;
public RBin.Addr binsym[4]; //
}
[CCode (cname="RBinAddr", free_function="", ref_function="", unref_function="")]
public class Addr {
public uint64 rva;
public uint64 offset;
}
[CCode (cname="RBinSection", free_function="", ref_function="", unref_function="")]
public class Section {
public char name[512]; // FIXME proper static strings w/o hardcoded size
public uint64 size;
public uint64 vsize;
public uint64 rva;
public uint64 offset;
public uint64 srwx;
}
[CCode (cname="RBinSymbol", free_function="", ref_function="", unref_function="")]
public class Symbol {
public char name[512]; // FIXME proper static strings w/o hardcoded size
public char forwarder[512]; // FIXME proper static strings w/o hardcoded size
public char bind[512]; // FIXME proper static strings w/o hardcoded size
public char type[512]; // FIXME proper static strings w/o hardcoded size
public unowned string classname;
public uint64 rva;
public uint64 offset;
public uint64 size;
public uint64 ordinal;
}
[CCode (cname="RBinImport", free_function="", ref_function="", unref_function="")]
public class Import {
public char name[512]; // FIXME proper static strings w/o hardcoded size
public char bind[512]; // FIXME proper static strings w/o hardcoded size
public char type[512]; // FIXME proper static strings w/o hardcoded size
public uint64 ordinal;
}
[CCode (cprefix="R_BIN_RELOC")]
public enum RelocType {
_8,
_16,
_32,
_64
}
[CCode (cname="RBinReloc", free_function="", ref_function="", unref_function="")]
public class Reloc {
public uint8 type;
public uint8 additive;
public RBin.Import import;
public int64 addend;
public uint64 rva;
public uint64 offset;
}
[CCode (cname="RBinInfo", free_function="", ref_function="", unref_function="")]
public class Info {
public char file[512]; // FIXME proper static strings w/o hardcoded size
public char type[512]; // FIXME proper static strings w/o hardcoded size
public char bclass[512]; // FIXME proper static strings w/o hardcoded size
public char rclass[512]; // FIXME proper static strings w/o hardcoded size
public char arch[512]; // FIXME proper static strings w/o hardcoded size
public char machine[512]; // FIXME proper static strings w/o hardcoded size
public char os[512]; // FIXME proper static strings w/o hardcoded size
public char subsystem[512]; // FIXME proper static strings w/o hardcoded size
public char rpath[512]; // FIXME proper static strings w/o hardcoded size
public unowned string lang;
public int bits;
public bool has_va;
public bool has_pi;
public bool big_endian;
public uint64 dbg_info;
}
[CCode (cname="RBinString", free_function="", ref_function="", unref_function="")]
public class String {
public char @string[512]; // FIXME proper static strings w/o hardcoded size
public uint64 rva;
public uint64 offset;
public uint64 ordinal;
public uint64 size;
}
[CCode (cname="RBinField", free_function="", ref_function="", unref_function="")]
public class Field {
public char name[512]; // FIXME proper static strings w/o hardcoded size
public uint64 rva;
public uint64 offset;
}
}
}
|