summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include/cnxconsole.hxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-15 00:45:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-15 00:45:14 +0000
commit1ac9219148610878491a20d15c87476451941eee (patch)
tree4692ee907021a755c1a5f3db5fd13e0d9712a2f7 /NxWidgets/nxwm/include/cnxconsole.hxx
parent5d5fb0b5646aed4cb074eb317fc09170645c7a3f (diff)
downloadnuttx-1ac9219148610878491a20d15c87476451941eee.tar.gz
nuttx-1ac9219148610878491a20d15c87476451941eee.tar.bz2
nuttx-1ac9219148610878491a20d15c87476451941eee.zip
Fix several compiler errors that occur when CONFIG_SCHED_ONEXIT is enabled; on_exit is now used in NxWM::NxConsole to close the window with the NSH session exits
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4738 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/include/cnxconsole.hxx')
-rw-r--r--NxWidgets/nxwm/include/cnxconsole.hxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/NxWidgets/nxwm/include/cnxconsole.hxx b/NxWidgets/nxwm/include/cnxconsole.hxx
index 426cf165f..91fb941d8 100644
--- a/NxWidgets/nxwm/include/cnxconsole.hxx
+++ b/NxWidgets/nxwm/include/cnxconsole.hxx
@@ -83,14 +83,21 @@ namespace NxWM
NXCONSOLE m_nxcon; /**< NxConsole handle */
pid_t m_pid; /**< Task ID of the NxConsole thread */
- /**
- * This is the NxConsole task. This function first redirects output to the
- * console window.
- */
+ /**
+ * This is the NxConsole task. This function first redirects output to the
+ * console window then calls to start the NSH logic.
+ */
static int nxconsole(int argc, char *argv[]);
/**
+ * This is the NxConsole task exit handler. It is registered with on_exit()
+ * and called automatically when the nxconsole task exits.
+ */
+
+ static void exitHandler(int code, FAR void *arg);
+
+ /**
* Called when the window minimize button is pressed.
*/