/usr/share/vala/vapi/r_reg.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 | /* radare - LGPL - Copyright 2009-2010 pancake<@nopcode.org> */
[Compact]
[CCode (cheader_filename="r_reg.h,r_list.h,r_types_base.h", cname="RReg", free_function="r_reg_free", cprefix="r_reg_")]
public class Radare.RReg {
[CCode (cprefix="R_REG_TYPE_", cname="int")]
public enum Type {
GPR,
DRX,
FPU,
MMX,
XMM,
FLG,
SEG,
LAST,
ALL
}
[Compact]
[CCode (cname="RRegItem", destroy_function="", free_function="" )]
public class Item {
public string name;
public int size;
public int offset;
public int packed_size;
public RReg.Type type;
}
[Compact]
[CCode (cname="RRegArena", destroy_function="", free_function="" )]
public class Arena {
public uint8* bytes;
public int size;
}
[Compact]
[CCode (cname="RRegSet", destroy_function="", free_function="" )]
public class Set {
public RReg.Arena arena;
//public RList<RReg.Arena*> arenas;
public RList<RReg.Item*> regs;
}
public RReg();
public bool set_profile(string file);
public bool set_profile_string(string profile);
public Item @get(string name, int type = -1);
/* TODO: use r_flist or r_list here */
//public KernelList<RReg.Item*> get_list(RReg.Type type);
public bool set_name(int role, string name);
public unowned string get_name(int role);
public static int get_name_idx(string type);
public static int type_by_name(string str);
public static unowned string? get_type(int idx);
public uint64 get_value(Item item);
public bool set_value(Item item, uint64 val);
public float get_fvalue(Item item);
public bool set_fvalue(Item item, float val);
public uint64 get_pvalue(Item item, int pidx);
public bool set_pvalue(Item item, uint64 val, int pidx);
public uint8* get_bytes(Type type, out int size = null);
public int set_bytes(Type type, uint8* buf, int len);
public void fit_arena();
public void arena_set(int n, bool copy);
public bool arena_push ();
public void arena_pop();
//public uint64 arena_cmp (RReg.Item item);
}
|