zephyr/samples/net/common/net_sample_app.h
Jukka Rissanen dc0fc57917 net: samples: Common application init API
This creates a common API for network sample applications for
setting up IP addresses etc. The HTTP client application is modified
to use this API.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2017-05-04 15:58:45 -04:00

28 lines
516 B
C

/** @file
* @brief Common routines needed in various network sample applications.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __NET_SAMPLE_APP_H
#define __NET_SAMPLE_APP_H
#ifdef __cplusplus
extern "C" {
#endif
/* What kind of functionality is needed by the application. */
#define NET_SAMPLE_NEED_ROUTER 0x00000001
int net_sample_app_init(const char *app_info, u32_t flags, s32_t timeout);
#ifdef __cplusplus
}
#endif
#endif /* __NET_SAMPLE_APP_H */