Code

frontend: Split up command_handle() into several sdb_fe_<cmd> functions.
[sysdb.git] / src / include / frontend / connection.h
index bff3f3be7db1c2785c78c4fbcb7888d0cf914047..16ad39a28a51f5c8be014a89ad0714b410806a5c 100644 (file)
@@ -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