Code

sysdb: Hide implementation details in the "input" module.
[sysdb.git] / src / tools / sysdb / input.h
index 80f1bb5aeb669b6085c0b33c5c3daf65df6426f1..40bd7c0c6d869129b0435febc10271a071e1a9de 100644 (file)
@@ -56,6 +56,18 @@ extern sdb_input_t *sysdb_input;
 int
 sdb_input_init(sdb_input_t *input);
 
+/*
+ * sdb_input_mainloop:
+ * Wait for and handle all user and server input until end-of-file is read
+ * from the user (on the standard input channel).
+ *
+ * Returns:
+ *  - 0 on success
+ *  - a negative value else
+ */
+int
+sdb_input_mainloop(void);
+
 /*
  * sdb_input_readline:
  * This function is supposed to be used with a flex scanner's YY_INPUT. It