summaryrefslogtreecommitdiff
path: root/apps/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-11 08:27:15 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-11 08:27:15 -0600
commit33110ddbf1723012dc213ec3a09b1cd50fb4357f (patch)
treeb5aac6b11ea009fc6fb680196c53b9c1e77a78d7 /apps/include
parentd14ba97a9346bf198886896d0b175f271f13d490 (diff)
downloadnuttx-33110ddbf1723012dc213ec3a09b1cd50fb4357f.tar.gz
nuttx-33110ddbf1723012dc213ec3a09b1cd50fb4357f.tar.bz2
nuttx-33110ddbf1723012dc213ec3a09b1cd50fb4357f.zip
NTP client, minor clean-up and enhancements
Diffstat (limited to 'apps/include')
-rw-r--r--apps/include/netutils/ntpclient.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/apps/include/netutils/ntpclient.h b/apps/include/netutils/ntpclient.h
index 038f10500..9d3f4ad21 100644
--- a/apps/include/netutils/ntpclient.h
+++ b/apps/include/netutils/ntpclient.h
@@ -67,6 +67,10 @@
# define CONFIG_NETUTILS_NTPCLIENT_POLLDELAYSEC 60
#endif
+#ifndef CONFIG_NETUTILS_NTPCLIENT_SIGWAKEUP
+# define CONFIG_NETUTILS_NTPCLIENT_SIGWAKEUP 18
+#endif
+
/****************************************************************************
* Public Types
****************************************************************************/
@@ -77,7 +81,8 @@
#ifdef __cplusplus
#define EXTERN extern "C"
-extern "C" {
+extern "C"
+{
#else
#define EXTERN extern
#endif
@@ -86,24 +91,34 @@ extern "C" {
* Public Function Prototypes
****************************************************************************/
/****************************************************************************
- * Name: ntpclient_start
+ * Name: ntpc_start
*
* Description:
* Start the NTP daemon
*
+ * Returned Value:
+ * On success, the non-negative task ID of the NTPC daemon is returned;
+ * On failure, a negated errno value is returned.
+ *
****************************************************************************/
-int ntpclient_start(void);
+int ntpc_start(void);
/****************************************************************************
- * Name: ntpclient_stop
+ * Name: ntpc_stop
*
* Description:
* Stop the NTP daemon
*
+ * Returned Value:
+ * Zero on success; a negated errno value on failure. The current
+ * implementation only returns success.
+ *
****************************************************************************/
-int ntpclient_stop(void);
+#ifndef CONFIG_DISABLE_SIGNALS
+int ntpc_stop(void);
+#endif
#undef EXTERN
#ifdef __cplusplus