MySQL 8.4.2
Source Code Documentation
|
Service for acquiring and releasing references to all registered Service Implementations. More...
#include <registry.h>
Public Attributes | |
mysql_service_status_t(* | acquire )(const char *service_name, my_h_service *out_service) |
Finds and acquires a Service by name. More... | |
mysql_service_status_t(* | acquire_related )(const char *service_name, my_h_service service, my_h_service *out_service) |
Finds a Service by name. More... | |
mysql_service_status_t(* | release )(my_h_service service) |
Releases the Service Implementation previously acquired. More... | |
Service for acquiring and releasing references to all registered Service Implementations.
mysql_service_status_t(* s_mysql_registry::acquire) (const char *service_name, my_h_service *out_service) |
Finds and acquires a Service by name.
A name of the Service or the Service Implementation can be specified. In case of the Service name, the default Service Implementation for Service specified will be returned.
service_name | Name of Service or Service Implementation to acquire. | |
[out] | out_service | Pointer to Service handle to set acquired Service. |
false | success |
true | failure |
mysql_service_status_t(* s_mysql_registry::acquire_related) (const char *service_name, my_h_service service, my_h_service *out_service) |
Finds a Service by name.
If there is a Service Implementation with the same Component part of name as the input Service then the found Service is returned.
service_name | Name of Service or Service Implementation to acquire. | |
service | Service handle already acquired Service Implementation. | |
[out] | out_service | Pointer to Service Implementation handle to set acquired Service Implementation. |
false | success |
true | failure |
mysql_service_status_t(* s_mysql_registry::release) (my_h_service service) |
Releases the Service Implementation previously acquired.
After the call to this method the usage of the Service Implementation handle will lead to unpredicted results.
service | Service Implementation handle of already acquired Service. |
false | success |
true | failure |