Code

frontend: Added 'FETCH <name>' query command.
[sysdb.git] / src / include / frontend / connection.h
index dc93db6c782ed46ddb03bfae613445dc78815973..bf902ddc1761b78c5b56f7b3c4903c8614639c3d 100644 (file)
@@ -164,6 +164,17 @@ sdb_fe_session_start(sdb_conn_t *conn);
  * store access
  */
 
+/*
+ * sdb_fe_fetch:
+ * Send the named host, serialized as JSON, to the client.
+ *
+ * Returns:
+ *  - 0 on success
+ *  - a negative value else
+ */
+int
+sdb_fe_fetch(sdb_conn_t *conn, const char *name);
+
 /*
  * sdb_fe_list:
  * Send a complete listing of the store, serialized as JSON, to the client.