summaryrefslogtreecommitdiffstats
path: root/cli.h
diff options
context:
space:
mode:
Diffstat (limited to 'cli.h')
-rw-r--r--cli.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli.h b/cli.h
new file mode 100644
index 00000000..e33ce4a5
--- /dev/null
+++ b/cli.h
@@ -0,0 +1,14 @@
+#ifndef CLI_H
+#define CLI_H
+
+/*
+ * Presents a prompt and returns the response allocated with xmalloc().
+ * Uses /dev/tty or stdin/out depending on arg. Optionally disables echo
+ * of response depending on arg. Tries to ensure that no other userland
+ * buffer is storing the response.
+ */
+char* cli_read_passphrase(char* prompt, int from_stdin, int echo_enable);
+char* cli_prompt(char* prompt, int echo_enable);
+void cli_mesg(char* mesg);
+
+#endif /* CLI_H */