summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-12-29 11:11:48 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-12-29 11:11:48 -0600
commitf3ce29aa9b591ff1b6a697484528f7340580ace7 (patch)
tree69b85fc081c232b5ed806b06e8d0f750b42cbdea /nuttx/include
parent513671256fe287033b8874d352fdf34bf6a14bea (diff)
downloadpx4-nuttx-f3ce29aa9b591ff1b6a697484528f7340580ace7.tar.gz
px4-nuttx-f3ce29aa9b591ff1b6a697484528f7340580ace7.tar.bz2
px4-nuttx-f3ce29aa9b591ff1b6a697484528f7340580ace7.zip
Add nx_start() to simplify starting the NX server from within the RTOS
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/nx/nx.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/nx/nx.h b/nuttx/include/nuttx/nx/nx.h
index e1357a342..27c738d41 100644
--- a/nuttx/include/nuttx/nx/nx.h
+++ b/nuttx/include/nuttx/nx/nx.h
@@ -270,6 +270,35 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev);
#endif
/****************************************************************************
+ * Name: nx_start
+ *
+ * Description:
+ * nx_start() provides a wrapper function to simplify and standardize the
+ * starting of the NX server.
+ *
+ * NOTE: Currently, many applications include logic to start the NX
+ * server from application initialization logic. That, of course, cannot
+ * work in the NuttX kernel build because the resources required by the
+ * NX server are private to the kernel mode logic.
+ *
+ * Input Parameters:
+ * None
+ *
+ * Returned Value:
+ * Zero (OK) is returned on success. This indicates that the NX server
+ * has been successfully started, is running, and waiting to accept
+ * connections from NX clients.
+ *
+ * A negated errno value is returned on failure. The errno value indicates
+ * the nature of the failure.
+ *
+ ****************************************************************************/
+
+#if defined(CONFIG_NX_MULTIUSER) && defined(CONFIG_NX_START)
+int nx_start(void);
+#endif
+
+/****************************************************************************
* Name:nx_connectinstance (and nx_connect macro)
*
* Description: