radare2/libr/vapi/r_range.vapi
pancake c5e588e6e5 * Initial import of libr
- Previous commits has been reported in the ChangeLog file
  - hg log has been lost (moved inside ChangeLog)
  - Old radare1 repository has removed all the libr
2009-02-05 22:08:46 +01:00

36 lines
1.1 KiB
Vala

/* radare - LGPL - Copyright 2009 pancake<nopcode.org> */
[CCode (cheader_filename="r_range.h", cprefix="r_range", lower_case_cprefix="r_range_")]
namespace Radare {
[Compact]
[CCode (cname="struct r_range_t", free_function="r_range_free", cprefix="r_range_")]
public class Range {
/* lifecycle */
public Range();
public Range.from_string(string str);
public Range.Item *item_get(uint64 addr);
public uint64 size();
public uint64 add_from_string(string str);
public uint64 add_string(string str);
public uint64 add(uint64 from, uint64 to, int rw);
public bool sub(uint64 from, uint64 to);
public bool merge(Range r);
public bool contains(uint64 addr);
public bool sort();
public bool percent(); // XXX
public bool list(bool rad); // XXX
public bool get_n(int n, out uint64 from, out uint64 to);
public Range *inverse(uint64 from, uint64 to, int flags);
[Compact]
[CCode (cname="struct r_core_file_t", cprefix="r_core_")]
public static struct Item {
public uint64 from;
public uint64 to;
public uint8 *data
public int datalen;
}
}
}