summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/hs_apps/CMakeLists.txt21
-rw-r--r--src/plugins/hs_apps/echo_client.c (renamed from src/vnet/session-apps/echo_client.c)2
-rw-r--r--src/plugins/hs_apps/echo_client.h (renamed from src/vnet/session-apps/echo_client.h)0
-rw-r--r--src/plugins/hs_apps/echo_server.c (renamed from src/vnet/session-apps/echo_server.c)0
-rw-r--r--src/plugins/hs_apps/hs_apps.c34
-rw-r--r--src/plugins/hs_apps/http_server.c (renamed from src/vnet/session-apps/http_server.c)0
-rw-r--r--src/plugins/hs_apps/proxy.c (renamed from src/vnet/session-apps/proxy.c)2
-rw-r--r--src/plugins/hs_apps/proxy.h (renamed from src/vnet/session-apps/proxy.h)0
-rw-r--r--src/vnet/CMakeLists.txt16
9 files changed, 57 insertions, 18 deletions
diff --git a/src/plugins/hs_apps/CMakeLists.txt b/src/plugins/hs_apps/CMakeLists.txt
new file mode 100644
index 00000000000..d27c8512306
--- /dev/null
+++ b/src/plugins/hs_apps/CMakeLists.txt
@@ -0,0 +1,21 @@
+# Copyright (c) 2019 Cisco and/or its affiliates.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at:
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+add_vpp_plugin(hs_apps
+ SOURCES
+ echo_client.c
+ echo_server.c
+ hs_apps.c
+ http_server.c
+ proxy.c
+)
diff --git a/src/vnet/session-apps/echo_client.c b/src/plugins/hs_apps/echo_client.c
index 24a3433d707..bcf4176ca71 100644
--- a/src/vnet/session-apps/echo_client.c
+++ b/src/plugins/hs_apps/echo_client.c
@@ -18,7 +18,7 @@
#include <vnet/vnet.h>
#include <vlibapi/api.h>
#include <vlibmemory/api.h>
-#include <vnet/session-apps/echo_client.h>
+#include <hs_apps/echo_client.h>
echo_client_main_t echo_client_main;
diff --git a/src/vnet/session-apps/echo_client.h b/src/plugins/hs_apps/echo_client.h
index 34cf0bd4764..34cf0bd4764 100644
--- a/src/vnet/session-apps/echo_client.h
+++ b/src/plugins/hs_apps/echo_client.h
diff --git a/src/vnet/session-apps/echo_server.c b/src/plugins/hs_apps/echo_server.c
index b7a74818cca..b7a74818cca 100644
--- a/src/vnet/session-apps/echo_server.c
+++ b/src/plugins/hs_apps/echo_server.c
diff --git a/src/plugins/hs_apps/hs_apps.c b/src/plugins/hs_apps/hs_apps.c
new file mode 100644
index 00000000000..5067919cc28
--- /dev/null
+++ b/src/plugins/hs_apps/hs_apps.c
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2019 Cisco and/or its affiliates.
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <vnet/vnet.h>
+#include <vnet/plugin/plugin.h>
+#include <vpp/app/version.h>
+
+/* *INDENT-OFF* */
+VLIB_PLUGIN_REGISTER () =
+{
+ .version = VPP_BUILD_VER,
+ .description = "Host Stack Applications",
+};
+/* *INDENT-ON* */
+
+/*
+ * fd.io coding-style-patch-verification: ON
+ *
+ * Local Variables:
+ * eval: (c-set-style "gnu")
+ * End:
+ */
diff --git a/src/vnet/session-apps/http_server.c b/src/plugins/hs_apps/http_server.c
index ace3c75ebb8..ace3c75ebb8 100644
--- a/src/vnet/session-apps/http_server.c
+++ b/src/plugins/hs_apps/http_server.c
diff --git a/src/vnet/session-apps/proxy.c b/src/plugins/hs_apps/proxy.c
index 6542c160f63..31dbfc5969f 100644
--- a/src/vnet/session-apps/proxy.c
+++ b/src/plugins/hs_apps/proxy.c
@@ -17,7 +17,7 @@
#include <vlibmemory/api.h>
#include <vnet/session/application.h>
#include <vnet/session/application_interface.h>
-#include <vnet/session-apps/proxy.h>
+#include <hs_apps/proxy.h>
proxy_main_t proxy_main;
diff --git a/src/vnet/session-apps/proxy.h b/src/plugins/hs_apps/proxy.h
index 9b80b3d1105..9b80b3d1105 100644
--- a/src/vnet/session-apps/proxy.h
+++ b/src/plugins/hs_apps/proxy.h
diff --git a/src/vnet/CMakeLists.txt b/src/vnet/CMakeLists.txt
index 462ced4ae23..467d82b2bf0 100644
--- a/src/vnet/CMakeLists.txt
+++ b/src/vnet/CMakeLists.txt
@@ -1203,22 +1203,6 @@ list(APPEND VNET_HEADERS
list(APPEND VNET_API_FILES session/session.api)
##############################################################################
-# session layer applications
-##############################################################################
-
-list(APPEND VNET_SOURCES
- session-apps/echo_client.c
- session-apps/echo_server.c
- session-apps/http_server.c
- session-apps/proxy.c
-)
-
-list(APPEND VNET_HEADERS
- session-apps/echo_client.h
- session-apps/proxy.h
-)
-
-##############################################################################
# TLS protocol
##############################################################################