mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
include/nuttx/nxmu.h: Due the name change, the nxmu_start() belongs more appropriately in nxmu.h than nx.h.
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@
|
|||||||
#include <nuttx/board.h>
|
#include <nuttx/board.h>
|
||||||
#include <nuttx/lib/modlib.h>
|
#include <nuttx/lib/modlib.h>
|
||||||
#include <nuttx/binfmt/symtab.h>
|
#include <nuttx/binfmt/symtab.h>
|
||||||
#include <nuttx/nx/nx.h>
|
#include <nuttx/nx/nxmu.h>
|
||||||
|
|
||||||
#ifdef CONFIG_BOARDCTL_USBDEVCTRL
|
#ifdef CONFIG_BOARDCTL_USBDEVCTRL
|
||||||
# include <nuttx/usb/cdcacm.h>
|
# include <nuttx/usb/cdcacm.h>
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
#include <nuttx/signal.h>
|
#include <nuttx/signal.h>
|
||||||
#include <nuttx/kthread.h>
|
#include <nuttx/kthread.h>
|
||||||
#include <nuttx/nx/nx.h>
|
#include <nuttx/nx/nx.h>
|
||||||
|
#include <nuttx/nx/nxmu.h>
|
||||||
|
|
||||||
#include "nxfe.h"
|
#include "nxfe.h"
|
||||||
|
|
||||||
|
|||||||
@@ -269,31 +269,6 @@ extern "C"
|
|||||||
int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev);
|
int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev);
|
||||||
#define nx_run(dev) nx_runinstance(NX_DEFAULT_SERVER_MQNAME, dev)
|
#define nx_run(dev) nx_runinstance(NX_DEFAULT_SERVER_MQNAME, dev)
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Name: nxmu_start
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* nxmu_start() provides a wrapper function to simplify and standardize
|
|
||||||
* the starting of the NX server.
|
|
||||||
*
|
|
||||||
* nxmu_start() can be called (indirectly) from applications via the
|
|
||||||
* boardctl() interface with the BOARDIOC_NX_START command.
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
int nxmu_start(void);
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: nx_connectinstance (and nx_connect macro)
|
* Name: nx_connectinstance (and nx_connect macro)
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -473,6 +473,31 @@ extern "C"
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: nxmu_start
|
||||||
|
*
|
||||||
|
* Description:
|
||||||
|
* nxmu_start() provides a wrapper function to simplify and standardize
|
||||||
|
* the starting of the NX server.
|
||||||
|
*
|
||||||
|
* nxmu_start() can be called (indirectly) from applications via the
|
||||||
|
* boardctl() interface with the BOARDIOC_NX_START command.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
int nxmu_start(void);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: nxfe_constructwindow
|
* Name: nxfe_constructwindow
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user