/usr/share/vala/vapi/r_db.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 | /* radare - LGPL - Copyright 2009-2011 pancake<@nopcode.org> */
namespace Radare {
[Compact]
[CCode (cheader_filename="r_db.h", cname="RDatabase", free_function="r_db_free", cprefix="r_db_")]
public class RDatabase {
/* lifecycle */
public RDatabase();
public void free();
/* storage */
public int add_id(int off, int size);
public bool @add(void *b);
public bool add_unique(void *b);
public bool delete(void *b);
public void* get(int key, uint8* buf);
/* stacky! */
// public int push(ref uint8* buf);
// public uint8 *pop();
}
[Compact]
[CCode (cheader_filename="r_db.h", cname="RPair", free_function="r_pair_free", cprefix="r_pair_")]
public class RPair {
/* lifecycle */
public RPair();
public RPair.from_file(string file);
public void free();
/* storage */
public void delete(string k);
public string get(string k);
public void set (string k, string v);
//TODO public RList<RPairItem> list (string domain);
public void sync();
public void reset();
}
}
|