samples: net: socket_echo: Add sample.yaml, update for net_app refactor

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2017-07-08 16:52:07 +03:00 committed by Jukka Rissanen
commit 52f8cde07b
2 changed files with 10 additions and 3 deletions

View file

@ -0,0 +1,8 @@
sample:
description: BSD Sockets API TCP echo server sample
name: socket_echo
tests:
- test:
build_only: true
platform_whitelist: qemu_x86
tags: net

View file

@ -19,12 +19,11 @@
#include <net/socket.h>
#include <kernel.h>
#include <net_sample_app.h>
#include <net/net_app.h>
void init_net(void)
{
int ret = net_sample_app_init("socket_echo", NET_SAMPLE_NEED_IPV4,
K_SECONDS(3));
int ret = net_app_init("socket_echo", NET_APP_NEED_IPV4, K_SECONDS(3));
if (ret < 0) {
printf("Application init failed\n");