Service for managing list of registered Service Implementations.
More...
#include <registry.h>
Service for managing list of registered Service Implementations.
◆ register_service
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_name | Name of the Service Implementation to register. |
ptr | Pointer to the Service Implementation structure. |
- Returns
- Status of performed operation
- Return values
-
◆ 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_name | Name of the Service Implementation to set as default one. |
- Returns
- Status of performed operation
- Return values
-
◆ unregister
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_name | Name of the Service Implementation to unregister. |
- Returns
- Status of performed operation
- Return values
-
false | success |
true | Failure. May happen when Service is still being referenced. |
The documentation for this struct was generated from the following file: