aboutsummaryrefslogtreecommitdiff
path: root/include/ntp_lineedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ntp_lineedit.h')
-rw-r--r--include/ntp_lineedit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ntp_lineedit.h b/include/ntp_lineedit.h
new file mode 100644
index 000000000000..623c6f402530
--- /dev/null
+++ b/include/ntp_lineedit.h
@@ -0,0 +1,13 @@
+
+/*
+ * ntp_lineedit.h - generic interface to various line editing libs
+ */
+
+int ntp_readline_init(const char *prompt);
+void ntp_readline_uninit(void);
+
+/*
+ * strings returned by ntp_readline go home to free()
+ */
+char * ntp_readline(int *pcount);
+