Add runtime configuration for UDP discovery utility. From Max Holtzberg

This commit is contained in:
Gregory Nutt 2013-05-21 12:47:07 -06:00
parent dba4210e37
commit ec32c5e636
4 changed files with 39 additions and 15 deletions

View file

@ -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 */