![]() |
MySQL 8.0.43
Source Code Documentation
|
Declaration of the registry plugin service. More...
#include <mysql/components/services/registry.h>Go to the source code of this file.
Classes | |
| struct | plugin_registry_service_st |
| A bridge service allowing plugins to work with the registry. More... | |
Macros | |
| #define | MYSQL_SERVICE_PLUGIN_REGISTRY_INCLUDED |
Functions | |
| const mysql_service_registry_t * | mysql_plugin_registry_acquire () |
| Returns a new reference to the "registry" service. More... | |
| int | mysql_plugin_registry_release (const mysql_service_registry_t *) |
| Releases a registry service reference. More... | |
Variables | |
| struct plugin_registry_service_st * | plugin_registry_service |
Declaration of the registry plugin service.
| #define MYSQL_SERVICE_PLUGIN_REGISTRY_INCLUDED |
| const mysql_service_registry_t * mysql_plugin_registry_acquire | ( | ) |
Returns a new reference to the "registry" service.
Implementation of plugin_registry_service_st::mysql_plugin_registry_acquire_func
Uses the global registry instance to search for the default implementation of the "registry" service by calling mysql_service_registry_t::acquire().
The reference must be released through calling mysql_plugin_registry_release() to avoid resource leaks.
| NULL | error. mysql_service_registry_t::acquire() failed. |
See also mysql_plugin_registry_release(), Component Subsystem, The Service Registry Service, mysql_service_registry_t::acquire()
| int mysql_plugin_registry_release | ( | const mysql_service_registry_t * | reg | ) |
Releases a registry service reference.
Implementation of plugin_registry_service_st::mysql_plugin_registry_release_func
Uses the global registry instance to release a service reference to the "registry" service passed as a parameter by calling mysql_service_registry_t::release() This is the reverse of mysql_plugin_registry_acquire().
| reg | the registry service handle to release |
| 0 | Success |
| non-zero | Failure |
See also mysql_plugin_registry_release(), Component Subsystem, The Service Registry Service, mysql_service_registry_t::release()