diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-21 12:47:07 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-21 12:47:07 -0600 |
commit | d1b1536d66431eeab17db17c6066c8da59410e1c (patch) | |
tree | 5c19708aff720b1035dda03a809eeca4a1939d66 /apps/include | |
parent | 63fbc0c2b3867e8919174c618a85a951f41b3682 (diff) | |
download | nuttx-d1b1536d66431eeab17db17c6066c8da59410e1c.tar.gz nuttx-d1b1536d66431eeab17db17c6066c8da59410e1c.tar.bz2 nuttx-d1b1536d66431eeab17db17c6066c8da59410e1c.zip |
Add runtime configuration for UDP discovery utility. From Max Holtzberg
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/netutils/discover.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/include/netutils/discover.h b/apps/include/netutils/discover.h index c2226918d..df792b8ca 100644 --- a/apps/include/netutils/discover.h +++ b/apps/include/netutils/discover.h @@ -36,16 +36,28 @@ #ifndef __APPS_INCLUDE_NETUTILS_DISCOVER_H #define __APPS_INCLUDE_NETUTILS_DISCOVER_H +#include <stdint.h> + /**************************************************************************** * Public Function Prototypes ****************************************************************************/ +struct discover_info_s +{ + uint8_t devclass; /* Device class, 0xff for all devices */ + const char *description; +}; + /**************************************************************************** * Name: discover_start * * Description: * Start the discover daemon. * + * Input Paramters: + * + * info Discover information, if NULL mconf defaults will be used. + * * Return: * The process ID (pid) of the new discover daemon is returned on * success; A negated errno is returned if the daemon was not successfully @@ -53,6 +65,6 @@ * ****************************************************************************/ -int discover_start(void); +int discover_start(struct discover_info_s *info); #endif /* __APPS_INCLUDE_NETUTILS_DISCOVER_H */ |