MySQL 8.0.39
Source Code Documentation
s_mysql_registry_registration Struct Reference

Service for managing list of registered Service Implementations. More...

#include <registry.h>

Public Attributes

mysql_service_status_t(* register_service )(const char *service_implementation_name, my_h_service ptr)
 Registers a new Service Implementation. More...
 
mysql_service_status_t(* unregister )(const char *service_implementation_name)
 Removes previously registered Service Implementation from registry. More...
 
mysql_service_status_t(* set_default )(const char *service_implementation_name)
 Sets new default Service Implementation for corresponding Service name. More...
 

Detailed Description

Service for managing list of registered Service Implementations.

Member Data Documentation

◆ register_service

mysql_service_status_t(* s_mysql_registry_registration::register_service) (const char *service_implementation_name, my_h_service ptr)

Registers a new Service Implementation.

If it is the first Service Implementation for the specified Service then it is made a default one.

Parameters
service_implementation_nameName of the Service Implementation to register.
ptrPointer to the Service Implementation structure.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

◆ set_default

mysql_service_status_t(* s_mysql_registry_registration::set_default) (const char *service_implementation_name)

Sets new default Service Implementation for corresponding Service name.

Parameters
service_implementation_nameName of the Service Implementation to set as default one.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

◆ unregister

mysql_service_status_t(* s_mysql_registry_registration::unregister) (const char *service_implementation_name)

Removes previously registered Service Implementation from registry.

If it is the default one for specified Service then any one still registered is made default. If there is no other, the default entry is removed from the Registry too.

Parameters
service_implementation_nameName of the Service Implementation to unregister.
Returns
Status of performed operation
Return values
falsesuccess
trueFailure. May happen when Service is still being referenced.

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