diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-03-06 13:06:03 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-03-10 18:21:26 +0100 |
commit | d6a7aece0826e0c115eb21912527c77596c1305e (patch) | |
tree | a08ea49d3154f59572868f45cbb14ba51a705cfd /libservices | |
parent | bd1139ad2722cf8717cd1aaac4431f369d39562f (diff) | |
download | mariadb-git-d6a7aece0826e0c115eb21912527c77596c1305e.tar.gz |
my_sha2 service
Diffstat (limited to 'libservices')
-rw-r--r-- | libservices/CMakeLists.txt | 1 | ||||
-rw-r--r-- | libservices/HOWTO | 4 | ||||
-rw-r--r-- | libservices/my_sha2_service.c | 18 |
3 files changed, 21 insertions, 2 deletions
diff --git a/libservices/CMakeLists.txt b/libservices/CMakeLists.txt index 62181a00aa2..66ceb3087de 100644 --- a/libservices/CMakeLists.txt +++ b/libservices/CMakeLists.txt @@ -25,6 +25,7 @@ SET(MYSQLSERVICES_SOURCES thd_specifics_service.c progress_report_service.c debug_sync_service.c + my_sha2_service.c my_sha1_service.c my_md5_service.c wsrep_service.c diff --git a/libservices/HOWTO b/libservices/HOWTO index 69d96f8aa25..6a581bf22e2 100644 --- a/libservices/HOWTO +++ b/libservices/HOWTO @@ -74,7 +74,7 @@ it should also declare all the accompanying data structures, as necessary #define VERSION_foo 0x0100 ================================================================== -6. create a new file libservices/foo_service.h using the following template: +6. create a new file libservices/foo_service.c using the following template: ================================================================== /* GPL header */ #include <service_versions.h> @@ -82,7 +82,7 @@ it should also declare all the accompanying data structures, as necessary ================================================================== 7. add the new file to libservices/CMakeLists.txt (MYSQLSERVICES_SOURCES) -8. Add all new files to repository (bzr add) +8. Add all new files to repository (git add) 9. and finally, register your service for dynamic linking in sql/sql_plugin_services.ic as follows: 9.1 fill in the service structure: diff --git a/libservices/my_sha2_service.c b/libservices/my_sha2_service.c new file mode 100644 index 00000000000..aa174e7d1f0 --- /dev/null +++ b/libservices/my_sha2_service.c @@ -0,0 +1,18 @@ +/* Copyright (c) 2017 MariaDB + Use is subject to license terms. + + 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 my_sha2_service= (void*)VERSION_my_sha2; |