summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/shell.h
diff options
context:
space:
mode:
authorAlexander Krutwig <alexander.krutwig@embedded-brains.de>2016-06-02 13:29:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-06-06 12:57:07 +0200
commita2597f31602ec9d23c26e119d3ac512e7af4daa4 (patch)
tree99b29f38d46285de6fb072362e8830f63147e720 /cpukit/libmisc/shell/shell.h
parentmghttpd: Add RTEMS printer support (diff)
downloadrtems-a2597f31602ec9d23c26e119d3ac512e7af4daa4.tar.bz2
shell: Add rtems_shell_wait_for_explicit_input()
Diffstat (limited to 'cpukit/libmisc/shell/shell.h')
-rw-r--r--cpukit/libmisc/shell/shell.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpukit/libmisc/shell/shell.h b/cpukit/libmisc/shell/shell.h
index ea8532d332..4d545d6a41 100644
--- a/cpukit/libmisc/shell/shell.h
+++ b/cpukit/libmisc/shell/shell.h
@@ -322,6 +322,24 @@ extern rtems_status_code rtems_shell_wait_for_input(
void *notification_arg
);
+/**
+ * @brief Waits for explicit input.
+ *
+ * @param desired_input An explicit unsigned character to wait for or -1 to
+ * accept any input.
+ *
+ * @retval RTEMS_SUCCESSFUL Input detected.
+ * @retval RTEMS_TIMEOUT Timeout expired.
+ * @retval RTEMS_UNSATISFIED Cannot change or restore termios attributes.
+ */
+extern rtems_status_code rtems_shell_wait_for_explicit_input(
+ int fd,
+ int timeout_in_seconds,
+ rtems_shell_wait_for_input_notification notification,
+ void *notification_arg,
+ int desired_input
+);
+
extern int rtems_shell_main_monitor(int argc, char **argv);
/*