summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/src/cnxconsole.cxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-01 22:31:26 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-01 22:31:26 +0000
commitfe90fbdbd18eed8712bbc30909efb1b7870f859f (patch)
treeeee1c00f81d018b0b2ec87c6a61d59947ad75606 /NxWidgets/nxwm/src/cnxconsole.cxx
parentfd4dd86fe8de2ddda1e8723973e8b5774528ebb7 (diff)
downloadnuttx-fe90fbdbd18eed8712bbc30909efb1b7870f859f.tar.gz
nuttx-fe90fbdbd18eed8712bbc30909efb1b7870f859f.tar.bz2
nuttx-fe90fbdbd18eed8712bbc30909efb1b7870f859f.zip
NxWM update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4683 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/src/cnxconsole.cxx')
-rw-r--r--NxWidgets/nxwm/src/cnxconsole.cxx62
1 files changed, 30 insertions, 32 deletions
diff --git a/NxWidgets/nxwm/src/cnxconsole.cxx b/NxWidgets/nxwm/src/cnxconsole.cxx
index 5fe81d844..3652364c7 100644
--- a/NxWidgets/nxwm/src/cnxconsole.cxx
+++ b/NxWidgets/nxwm/src/cnxconsole.cxx
@@ -143,38 +143,6 @@ CNxConsole::~CNxConsole(void)
}
/**
- * One time NSH initialization. This function must be called exactly
- * once during the boot-up sequence to initialize the NSH library.
- *
- * @return True on successful initialization
- */
-
-bool nshlibInitialize(void)
-{
- // Initialize the global data structure
-
- sem_init(&g_nxconvars.sem, 0, 0);
-
- // Initialize the NSH library
-
- nsh_initialize();
-
- // If the Telnet console is selected as a front-end, then start the
- // Telnet daemon.
-
-#ifdef CONFIG_NSH_TELNET
- int ret = nsh_telnetstart();
- if (ret < 0)
- {
- // The daemon is NOT running!
-
- return false;
- }
-#endif
- return true;
-}
-
-/**
* Each implementation of IApplication must provide a method to recover
* the contained CApplicationWindow instance.
*/
@@ -442,5 +410,35 @@ void CNxConsole::close(void)
m_taskbar->stopApplication(static_cast<IApplication*>(this));
}
+/**
+ * One time NSH initialization. This function must be called exactly
+ * once during the boot-up sequence to initialize the NSH library.
+ *
+ * @return True on successful initialization
+ */
+
+bool NxWM::nshlibInitialize(void)
+{
+ // Initialize the global data structure
+
+ sem_init(&g_nxconvars.sem, 0, 0);
+
+ // Initialize the NSH library
+
+ nsh_initialize();
+
+ // If the Telnet console is selected as a front-end, then start the
+ // Telnet daemon.
+#ifdef CONFIG_NSH_TELNET
+ int ret = nsh_telnetstart();
+ if (ret < 0)
+ {
+ // The daemon is NOT running!
+
+ return false;
+ }
+#endif
+ return true;
+}