summaryrefslogtreecommitdiff
path: root/libservices
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2018-12-12 01:49:39 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2018-12-12 01:49:39 +0400
commitb1527ef51ccf5c4d7a4a3847c542ef9a81a97240 (patch)
tree3d4ff816a77e34be669b21d4c44171d1b18f456d /libservices
parentdc6ad597656e8173dd73edb58a967152df70dc9e (diff)
downloadmariadb-git-b1527ef51ccf5c4d7a4a3847c542ef9a81a97240.tar.gz
MDEV-5313 Improving audit api.
Service added to handle json.
Diffstat (limited to 'libservices')
-rw-r--r--libservices/CMakeLists.txt1
-rw-r--r--libservices/json_service.c19
2 files changed, 20 insertions, 0 deletions
diff --git a/libservices/CMakeLists.txt b/libservices/CMakeLists.txt
index e20be6d7a7c..b99be7106e1 100644
--- a/libservices/CMakeLists.txt
+++ b/libservices/CMakeLists.txt
@@ -37,6 +37,7 @@ SET(MYSQLSERVICES_SOURCES
thd_timezone_service.c
thd_wait_service.c
wsrep_service.c
+ json_service.c
)
ADD_CONVENIENCE_LIBRARY(mysqlservices ${MYSQLSERVICES_SOURCES})
diff --git a/libservices/json_service.c b/libservices/json_service.c
new file mode 100644
index 00000000000..96b3b3fa532
--- /dev/null
+++ b/libservices/json_service.c
@@ -0,0 +1,19 @@
+
+/* Copyright (c) 2018, Monty Program Ab
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 of the License.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+*/
+
+#include <service_versions.h>
+SERVICE_VERSION json_service= (void*)VERSION_json;