diff options
Diffstat (limited to 'libservices/HOWTO')
-rw-r--r-- | libservices/HOWTO | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libservices/HOWTO b/libservices/HOWTO index 512cdb43c99..6a581bf22e2 100644 --- a/libservices/HOWTO +++ b/libservices/HOWTO @@ -67,12 +67,14 @@ it should also declare all the accompanying data structures, as necessary 3. add the new file to include/mysql/services.h 4. increase the minor plugin ABI version in include/mysql/plugin.h (MARIA_PLUGIN_INTERFACE_VERSION = MARIA_PLUGIN_INTERFACE_VERSION+1) + don't forget to update test result! e.g. use something like + grep '\s\<1\.11\>' -r mysql-test 5. add the version of your service to include/service_versions.h: ================================================================== #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> @@ -80,9 +82,9 @@ 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.h as follows: + sql/sql_plugin_services.ic as follows: 9.1 fill in the service structure: ================================================================== static struct foo_service_st foo_handler = { |