mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-04 04:38:15 +00:00
Add runtime configuration for UDP discovery utility. From Max Holtzberg
This commit is contained in:
parent
dba4210e37
commit
ec32c5e636
4 changed files with 39 additions and 15 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue