From 52f8cde07b68e02f67252447922fc882339c2ba1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 8 Jul 2017 16:52:07 +0300 Subject: [PATCH] samples: net: socket_echo: Add sample.yaml, update for net_app refactor Signed-off-by: Paul Sokolovsky --- samples/net/socket_echo/sample.yaml | 8 ++++++++ samples/net/socket_echo/src/socket_echo.c | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 samples/net/socket_echo/sample.yaml diff --git a/samples/net/socket_echo/sample.yaml b/samples/net/socket_echo/sample.yaml new file mode 100644 index 00000000000..7b308125e43 --- /dev/null +++ b/samples/net/socket_echo/sample.yaml @@ -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 diff --git a/samples/net/socket_echo/src/socket_echo.c b/samples/net/socket_echo/src/socket_echo.c index c9fa4c8b572..c6c83904094 100644 --- a/samples/net/socket_echo/src/socket_echo.c +++ b/samples/net/socket_echo/src/socket_echo.c @@ -19,12 +19,11 @@ #include #include -#include +#include 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");