Code

sysdb: Add and use sdb_input_reset().
[sysdb.git] / src / tools / sysdb / input.h
index ba2b32d8d3553dad528bfda657d7f18f79b20234..6002c1f3d5464f992c01bae48aa38b55819a0eae 100644 (file)
@@ -61,6 +61,14 @@ extern sdb_input_t *sysdb_input;
 int
 sdb_input_init(sdb_input_t *input);
 
+/*
+ * sdb_input_reset:
+ * Reset the input handler and free all dynamically allocated memory. The
+ * input handler object itself will not be freed.
+ */
+void
+sdb_input_reset(sdb_input_t *input);
+
 /*
  * sdb_input_mainloop:
  * Wait for and handle all user and server input until end-of-file is read