X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Ffrontend%2Fconnection.h;h=16ad39a28a51f5c8be014a89ad0714b410806a5c;hp=bff3f3be7db1c2785c78c4fbcb7888d0cf914047;hb=d48884911904c87e0143b70a1a102d4cf25d638b;hpb=5128caf8acad1c6a4f308389e6866dfc80db7dbc diff --git a/src/include/frontend/connection.h b/src/include/frontend/connection.h index bff3f3b..16ad39a 100644 --- a/src/include/frontend/connection.h +++ b/src/include/frontend/connection.h @@ -165,6 +165,25 @@ sdb_fe_session_start(sdb_conn_t *conn); * store access */ +/* + * sdb_fe_query, sdb_fe_fetch, sdb_fe_list, sdb_fe_lookup: + * Handle the CONNECTION_QUERY, CONNECTION_FETCH, CONNECTION_LIST, and + * CONNECTION_LOOKUP commands respectively. It is expected that the current + * command has been initialized already. + * + * Returns: + * - 0 on success + * - a negative value else + */ +int +sdb_fe_query(sdb_conn_t *conn); +int +sdb_fe_fetch(sdb_conn_t *conn); +int +sdb_fe_list(sdb_conn_t *conn); +int +sdb_fe_lookup(sdb_conn_t *conn); + /* * sdb_fe_exec_fetch: * Execute the 'FETCH' command. Send the named host, serialized as JSON, to