net: apps: Rename application init function
Rename application init function to init_app() so that it is more descriptive. Change-Id: Id470756345c0bd10b103270115b26f3e8a281d17 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
3571e1f20a
commit
e0f966de10
6 changed files with 12 additions and 12 deletions
|
@ -93,7 +93,7 @@ static struct in_addr in4addr_peer = PEER_IPADDR;
|
||||||
static struct in_addr in4addr_my = MY_IPADDR;
|
static struct in_addr in4addr_my = MY_IPADDR;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void init_server()
|
static inline void init_app(void)
|
||||||
{
|
{
|
||||||
PRINT("%s: run coap observe client\n", __func__);
|
PRINT("%s: run coap observe client\n", __func__);
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ void startup(void)
|
||||||
coap_init_engine();
|
coap_init_engine();
|
||||||
coap_init_mid();
|
coap_init_mid();
|
||||||
|
|
||||||
init_server();
|
init_app();
|
||||||
|
|
||||||
coap_ctx = coap_context_new((uip_ipaddr_t *)&in6addr_my, MY_PORT);
|
coap_ctx = coap_context_new((uip_ipaddr_t *)&in6addr_my, MY_PORT);
|
||||||
if (!coap_ctx) {
|
if (!coap_ctx) {
|
||||||
|
|
|
@ -103,7 +103,7 @@ static struct in_addr in4addr_peer = PEER_IPADDR;
|
||||||
static struct in_addr in4addr_my = MY_IPADDR;
|
static struct in_addr in4addr_my = MY_IPADDR;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void init_server()
|
static inline void init_app(void)
|
||||||
{
|
{
|
||||||
PRINT("%s: run coap server\n", __func__);
|
PRINT("%s: run coap server\n", __func__);
|
||||||
|
|
||||||
|
@ -308,7 +308,7 @@ void startup(void)
|
||||||
dtls_set_log_level(DTLS_LOG_DEBUG);
|
dtls_set_log_level(DTLS_LOG_DEBUG);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
init_server();
|
init_app();
|
||||||
|
|
||||||
/* Activate the application-specific resources. */
|
/* Activate the application-specific resources. */
|
||||||
rest_activate_resource(&res_plugtest_test, "test");
|
rest_activate_resource(&res_plugtest_test, "test");
|
||||||
|
|
|
@ -115,7 +115,7 @@ static struct in_addr in4addr_peer = PEER_IPADDR;
|
||||||
static struct in_addr in4addr_my = MY_IPADDR;
|
static struct in_addr in4addr_my = MY_IPADDR;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void init_client(void)
|
static inline void init_app(void)
|
||||||
{
|
{
|
||||||
PRINT("%s: run dtls client\n", __func__);
|
PRINT("%s: run dtls client\n", __func__);
|
||||||
|
|
||||||
|
@ -454,7 +454,7 @@ void startup(void)
|
||||||
|
|
||||||
dtls_init();
|
dtls_init();
|
||||||
|
|
||||||
init_client();
|
init_app();
|
||||||
|
|
||||||
user_data.ctx = get_context();
|
user_data.ctx = get_context();
|
||||||
if (!user_data.ctx) {
|
if (!user_data.ctx) {
|
||||||
|
|
|
@ -84,7 +84,7 @@ static const struct in_addr in4addr_any = { { { 0 } } };
|
||||||
static struct in_addr in4addr_my = MY_IPADDR;
|
static struct in_addr in4addr_my = MY_IPADDR;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline void init_server()
|
static inline void init_app(void)
|
||||||
{
|
{
|
||||||
PRINT("%s: run dtls server\n", __func__);
|
PRINT("%s: run dtls server\n", __func__);
|
||||||
|
|
||||||
|
@ -390,7 +390,7 @@ void startup(void)
|
||||||
|
|
||||||
dtls_init();
|
dtls_init();
|
||||||
|
|
||||||
init_server();
|
init_app();
|
||||||
|
|
||||||
recv = get_context();
|
recv = get_context();
|
||||||
if (!recv) {
|
if (!recv) {
|
||||||
|
|
|
@ -101,7 +101,7 @@ static struct in6_addr in6addr_my = MY_IPADDR;
|
||||||
|
|
||||||
static struct net_context *unicast, *multicast;
|
static struct net_context *unicast, *multicast;
|
||||||
|
|
||||||
static inline void init_server()
|
static inline void init_app(void)
|
||||||
{
|
{
|
||||||
PRINT("%s: run mcast tester\n", __func__);
|
PRINT("%s: run mcast tester\n", __func__);
|
||||||
|
|
||||||
|
@ -373,7 +373,7 @@ void main(void)
|
||||||
{
|
{
|
||||||
net_init();
|
net_init();
|
||||||
|
|
||||||
init_server();
|
init_app();
|
||||||
|
|
||||||
ipsum_len = strlen(lorem_ipsum);
|
ipsum_len = strlen(lorem_ipsum);
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ static struct in6_addr in6addr_my = MY_IPADDR;
|
||||||
#endif
|
#endif
|
||||||
#define MY_PORT 4242
|
#define MY_PORT 4242
|
||||||
|
|
||||||
static inline void init_server()
|
static inline void init_app(void)
|
||||||
{
|
{
|
||||||
PRINT("%s: run echo server\n", __func__);
|
PRINT("%s: run echo server\n", __func__);
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ void main(void)
|
||||||
{
|
{
|
||||||
net_init();
|
net_init();
|
||||||
|
|
||||||
init_server();
|
init_app();
|
||||||
|
|
||||||
#if defined(CONFIG_NETWORKING_WITH_BT)
|
#if defined(CONFIG_NETWORKING_WITH_BT)
|
||||||
if (bt_enable(NULL)) {
|
if (bt_enable(NULL)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue