diff --git a/configs/boardctl.c b/configs/boardctl.c index b335e76c507..cb0b252bca5 100644 --- a/configs/boardctl.c +++ b/configs/boardctl.c @@ -48,7 +48,7 @@ #include #include #include -#include +#include #ifdef CONFIG_BOARDCTL_USBDEVCTRL # include diff --git a/graphics/nxmu/nxmu_start.c b/graphics/nxmu/nxmu_start.c index c76b0eb39d7..22eaffb0cd9 100644 --- a/graphics/nxmu/nxmu_start.c +++ b/graphics/nxmu/nxmu_start.c @@ -50,6 +50,7 @@ #include #include #include +#include #include "nxfe.h" diff --git a/include/nuttx/nx/nx.h b/include/nuttx/nx/nx.h index 514c5306978..a2469f01237 100644 --- a/include/nuttx/nx/nx.h +++ b/include/nuttx/nx/nx.h @@ -269,31 +269,6 @@ extern "C" int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *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) * diff --git a/include/nuttx/nx/nxmu.h b/include/nuttx/nx/nxmu.h index fb6cd68d343..e13c1237973 100644 --- a/include/nuttx/nx/nxmu.h +++ b/include/nuttx/nx/nxmu.h @@ -473,6 +473,31 @@ extern "C" * 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 *