X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fstore.h;h=179b5d05a470a9f59e13b73c9826edfed9fa184e;hp=0abf0cb467d3d0a66fb3f99008537bce2f8848de;hb=740f1a8839faaf3033ea23f4cf2eea0dc0209d13;hpb=c2f7813397319e930c81c4f64b213bec64549167 diff --git a/src/include/core/store.h b/src/include/core/store.h index 0abf0cb..179b5d0 100644 --- a/src/include/core/store.h +++ b/src/include/core/store.h @@ -371,6 +371,19 @@ sdb_store_get_attr(sdb_store_obj_t *obj, const char *name, sdb_data_t *res, sdb_store_matcher_t * sdb_store_query_prepare(sdb_ast_node_t *ast); +/* + * sdb_store_query_execute: + * Execute a previously prepared query. The query result will be written to + * 'buf' and any errors to 'errbuf'. + * + * Returns: + * - the result type (to be used by the server reply) + * - a negative value on error + */ +int +sdb_store_query_execute(sdb_store_matcher_t *m, + sdb_strbuf_t *buf, sdb_strbuf_t *errbuf); + /* * sdb_store_expr_create: * Creates an arithmetic expression implementing the specified operator on the