2010-01-26 01:28:33 +01:00
|
|
|
/* radare - LGPL - Copyright 2009-2010 pancake<@nopcode.org> */
|
2009-07-21 22:59:34 +00:00
|
|
|
|
2010-01-26 01:28:33 +01:00
|
|
|
[Compact]
|
|
|
|
[CCode (cheader_filename="r_db.h", cname="struct r_db_t", free_function="r_db_free", cprefix="r_db_")]
|
|
|
|
public class Radare.RDatabase {
|
|
|
|
/* lifecycle */
|
|
|
|
public RDatabase();
|
|
|
|
/**
|
|
|
|
* Initializes a database object
|
|
|
|
*/
|
|
|
|
public void init();
|
|
|
|
public void free();
|
2009-07-21 22:59:34 +00:00
|
|
|
|
2010-01-26 01:28:33 +01:00
|
|
|
/* 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);
|
2009-07-21 22:59:34 +00:00
|
|
|
|
2010-01-26 01:28:33 +01:00
|
|
|
/* stacky! */
|
|
|
|
public int push(ref uint8* buf);
|
|
|
|
public uint8 *pop();
|
2009-07-21 22:59:34 +00:00
|
|
|
}
|