MySQL  8.0.18
Source Code Documentation
s_mysql_registry Struct Reference

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...
 

Detailed Description

Service for acquiring and releasing references to all registered Service Implementations.

Member Data Documentation

◆ acquire

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.

Parameters
service_nameName of Service or Service Implementation to acquire.
[out]out_servicePointer to Service handle to set acquired Service.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

◆ acquire_related

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. Otherwise the default Service Implementation for specified Service is returned.

Parameters
service_nameName of Service or Service Implementation to acquire.
serviceService handle already acquired Service Implementation.
[out]out_servicePointer to Service Implementation handle to set acquired Service Implementation.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

◆ release

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.

Parameters
serviceService Implementation handle of already acquired Service.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

The documentation for this struct was generated from the following file: