diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2018-12-12 01:49:39 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2018-12-12 01:49:39 +0400 |
commit | b1527ef51ccf5c4d7a4a3847c542ef9a81a97240 (patch) | |
tree | 3d4ff816a77e34be669b21d4c44171d1b18f456d /sql/sql_plugin_services.ic | |
parent | dc6ad597656e8173dd73edb58a967152df70dc9e (diff) | |
download | mariadb-git-b1527ef51ccf5c4d7a4a3847c542ef9a81a97240.tar.gz |
MDEV-5313 Improving audit api.
Service added to handle json.
Diffstat (limited to 'sql/sql_plugin_services.ic')
-rw-r--r-- | sql/sql_plugin_services.ic | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sql/sql_plugin_services.ic b/sql/sql_plugin_services.ic index 8de53aa2161..c730490a499 100644 --- a/sql/sql_plugin_services.ic +++ b/sql/sql_plugin_services.ic @@ -217,6 +217,16 @@ static struct my_print_error_service_st my_print_error_handler= my_printv_error }; +struct json_service_st json_handler= +{ + json_type, + json_get_array_item, + json_get_object_key, + json_get_object_nkey, + json_escape_string, + json_unescape_json +}; + static struct st_service_ref list_of_services[]= { { "base64_service", VERSION_base64, &base64_handler }, @@ -239,6 +249,7 @@ static struct st_service_ref list_of_services[]= { "thd_specifics_service", VERSION_thd_specifics, &thd_specifics_handler }, { "thd_timezone_service", VERSION_thd_timezone, &thd_timezone_handler }, { "thd_wait_service", VERSION_thd_wait, &thd_wait_handler }, - { "wsrep_service", VERSION_wsrep, &wsrep_handler } + { "wsrep_service", VERSION_wsrep, &wsrep_handler }, + { "json_service", VERSION_json, &json_handler } }; |