index ccdce039881ca27893c53e3d5e0cb6ee6ea4cca0..0aeabf8b7b653197f98ffa0678d13b769e0c21e2 100644 (file)
--- a/src/tools/sysdb/input.h
+++ b/src/tools/sysdb/input.h
typedef struct {
sdb_client_t *client;
+ const char *user;
sdb_strbuf_t *input;
size_t tokenizer_pos;
size_t query_len;
- _Bool interactive;
- _Bool eof;
+ bool interactive;
+ bool eof;
} sdb_input_t;
-#define SDB_INPUT_INIT { NULL, NULL, 0, 0, 1, 0 }
+#define SDB_INPUT_INIT { NULL, NULL, NULL, 0, 0, 1, 0 }
/*
* sysdb_input:
int
sdb_input_exec_query(void);
+/*
+ * sdb_input_reconnect:
+ * Let the client reconnect to the server using the settings stored in
+ * sysdb_input.
+ */
+int
+sdb_input_reconnect(void);
+
#endif /* SYSDB_INPUT_H */
/* vim: set tw=78 sw=4 ts=4 noexpandtab : */