|
Typedefs |
typedef int(* | StmtBaseFilter )(void *obj, void *data) |
typedef _StmtBaseHandle | StmtBaseHandle |
typedef void(* | StmtUpdateCallback )(Statement *stmt, void *obj, void *data) |
Functions |
int | stmtbase_close (StmtBaseHandle *h) |
| Closes stmtbase handle.
|
void | stmtbase_destoy () |
| Clears the statement base.
|
int | stmtbase_get (StmtBaseHandle *h, const Statement *mask, Statement **result) |
| Returns the request of the request.
|
int | stmtbase_get_ex (StmtBaseHandle *h, const Statement *mask, Statement **result, void *data, int flags) |
int | stmtbase_init () |
| Initializes the statement base common structures.
|
int | stmtbase_load (StmtBaseHandle *h, FILE *f) |
int | stmtbase_open (char *opts, StmtBaseHandle **h) |
| Opens stmt base with given options.
|
int | stmtbase_save (StmtBaseHandle *h, FILE *f) |
int | stmtbase_set (StmtBaseHandle *h, Statement *stmt) |
| Changes the state of a statement in the statment base.
|
int | stmtbase_set_ex (StmtBaseHandle *h, Statement *stmt, int flags) |
void | stmtbase_set_filter (StmtBaseHandle *h, StmtBaseFilter func) |
void | stmtbase_set_update_cb (StmtBaseHandle *h, StmtUpdateCallback cb) |
Statement Base is the place where all the statements are resided.
The Statement base may have several implementations with the same interface which states the univerasal access for the statements. It is planned to be thread-safe to work in multithreaded enviroments.