mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-10 08:14:35 +00:00
40 lines
1.3 KiB
Vala
40 lines
1.3 KiB
Vala
/* radare - LGPL - Copyright 2010 pancake<@nopcode.org> */
|
|
|
|
[CCode (cheader_filename="r_flags.h,r_list.h,r_types_base.h", cprefix="r_flag_", lower_case_cprefix="r_flag_")]
|
|
namespace Radare {
|
|
[Compact]
|
|
[CCode (cprefix="r_flag_item_", cname="struct r_flag_item_t", free_function="free")]
|
|
public class RFlagItem {
|
|
public string name;
|
|
public uint64 namehash;
|
|
public int space;
|
|
public uint64 size;
|
|
public uint64 offset;
|
|
public string cmd;
|
|
public void set_name(string name);
|
|
}
|
|
|
|
[Compact]
|
|
[CCode (cname="struct r_flag_t", free_function="r_flag_free", cprefix="r_flag_")]
|
|
public class RFlag {
|
|
public int space_idx;
|
|
public RFlag();
|
|
public RList<RFlagItem> flags;
|
|
public void list(bool rad);
|
|
public RFlagItem get(string name);
|
|
public RFlagItem get_i(uint64 addr);
|
|
public bool unset(string name, RFlagItem? item);
|
|
public bool unset_i(uint64 addr, RFlagItem? item);
|
|
public bool sort(int namesort);
|
|
//public static bool name_check(string name);
|
|
//public static bool name_filter(string name);
|
|
public void set(string name, uint64 addr, int size=1, bool dup=false);
|
|
|
|
public void space_list();
|
|
public unowned string? space_get_i(int idx);
|
|
public int space_get(string name);
|
|
//public int space_get_i(string fsname);
|
|
public void space_set(string name);
|
|
}
|
|
}
|