MySQL 8.0.40
Source Code Documentation
|
A bridge service allowing plugins to work with the registry. More...
#include <service_plugin_registry.h>
Public Attributes | |
const mysql_service_registry_t *(* | mysql_plugin_registry_acquire_func )() |
Acquire a pointer to the registry service. More... | |
int(* | mysql_plugin_registry_release_func )(const mysql_service_registry_t *registry_ptr) |
Release a pointer to the registry service. More... | |
A bridge service allowing plugins to work with the registry.
This allows traditional MySQL plugins to interact with the service registry. All this plugins service does is to return a reference to the registry service. Using that the plugins can access the rest of the registry and dynamic loaders services, as well as other services present in the registry. Note that the plugins must release the service references they acquire otherwise resources will be leaked and normal unload order may be affected.
const mysql_service_registry_t *(* plugin_registry_service_st::mysql_plugin_registry_acquire_func) () |
Acquire a pointer to the registry service.
The reference must be released by calling plugin_registry_service_st::mysql_plugin_registry_release_func() See mysql_plugin_registry_acquire() for more details.
Once you receive the registry pointer you can use it to acquire references to other services your plugin might be interested in.
See also: Component Subsystem, The Service Registry Service, mysql_plugin_registry_acquire(), mysql_plugin_registry_release()
int(* plugin_registry_service_st::mysql_plugin_registry_release_func) (const mysql_service_registry_t *registry_ptr) |
Release a pointer to the registry service.
Releases the reference to the registry service, as returned by mysql_plugin_registry_acquire(). After this call the reigstry_ptr is undefined and should not be used anymore. See mysql_plugin_registry_release() for more details.
registry_ptr | the registry pointer |
0 | success |
non-zero | failure |
See also Component Subsystem, The Service Registry Service, mysql_plugin_registry_release(), mysql_plugin_registry_acquire()