MySQL 8.0.39
Source Code Documentation
|
#include <mysql/components/component_implementation.h>
#include <mysql/components/my_service.h>
#include <mysql/components/services/mysql_psi_system_service.h>
#include <mysql/components/services/mysql_runtime_error.h>
#include <mysql/components/services/mysql_rwlock_service.h>
#include <mysql/components/minimal_chassis.h>
#include <mysql/components/services/dynamic_loader.h>
#include "component_common.h"
#include "dynamic_loader_imp.h"
#include "dynamic_loader_scheme_file_imp.h"
#include "minimal_chassis_runtime_error_imp.h"
#include "registry_imp.h"
Functions | |
REQUIRES_SERVICE_PLACEHOLDER (mysql_rwlock_v1) | |
const mysql_service_mysql_psi_system_v1_t | SERVICE_IMPLEMENTATION (mysql_minimal_chassis, mysql_psi_system_v1) |
REQUIRES_SERVICE_PLACEHOLDER (mysql_psi_system_v1) | |
REQUIRES_SERVICE_PLACEHOLDER (mysql_runtime_error) | |
PROVIDES_SERVICE (mysql_minimal_chassis, registry) | |
PROVIDES_SERVICE (mysql_minimal_chassis, registry_registration) | |
PROVIDES_SERVICE (mysql_minimal_chassis, registry_query) | |
PROVIDES_SERVICE (mysql_minimal_chassis, registry_metadata_enumerate) | |
PROVIDES_SERVICE (mysql_minimal_chassis, registry_metadata_query) | |
PROVIDES_SERVICE (mysql_minimal_chassis, dynamic_loader) | |
PROVIDES_SERVICE (mysql_minimal_chassis, dynamic_loader_query) | |
PROVIDES_SERVICE (mysql_minimal_chassis, dynamic_loader_metadata_enumerate) | |
PROVIDES_SERVICE (mysql_minimal_chassis, dynamic_loader_metadata_query) | |
PROVIDES_SERVICE (mysql_minimal_chassis, dynamic_loader_scheme_file) | |
PROVIDES_SERVICE (mysql_minimal_chassis, mysql_runtime_error) | |
PROVIDES_SERVICE (mysql_minimal_chassis, mysql_rwlock_v1) | |
PROVIDES_SERVICE (mysql_minimal_chassis, mysql_psi_system_v1) | |
END_COMPONENT_PROVIDES () | |
END_COMPONENT_REQUIRES () | |
METADATA ("mysql.author", "Oracle Corporation") | |
METADATA ("mysql.license", "GPL") | |
END_COMPONENT_METADATA () | |
bool | minimal_chassis_init (mysql_service_registry_t **registry, mysql_component_t *comp_ref) |
This is the entry function for minimal_chassis static library, which has to be called by the application code. More... | |
bool | minimal_chassis_deinit (mysql_service_registry_t *registry, mysql_component_t *comp_ref) |
This is the exit function for minimal_chassis static library, which has to be called just before the exit of the application. More... | |
void | minimal_chassis_services_refresh (bool use_related) |
This function refreshes the global service handles based on the use_related flag. More... | |
END_COMPONENT_METADATA | ( | ) |
END_COMPONENT_PROVIDES | ( | ) |
END_COMPONENT_REQUIRES | ( | ) |
METADATA | ( | "mysql.author" | , |
"Oracle Corporation" | |||
) |
METADATA | ( | "mysql.license" | , |
"GPL" | |||
) |
bool minimal_chassis_deinit | ( | mysql_service_registry_t * | registry, |
mysql_component_t * | comp_ref | ||
) |
This is the exit function for minimal_chassis static library, which has to be called just before the exit of the application.
Releases the service registry and dynamic loader services. Releases the registry handle, which is acquired at the time of minimal_chassis_init(), if provided the handle address. And un-registers the component services, if provided component reference which is statically linked to this library.
[in] | registry | A service handle to registry service. |
[in] | comp_ref | A component structure referance name. |
false | success |
true | failure |
bool minimal_chassis_init | ( | mysql_service_registry_t ** | registry, |
mysql_component_t * | comp_ref | ||
) |
This is the entry function for minimal_chassis static library, which has to be called by the application code.
Bootstraps service registry and dynamic loader. And registry handle will be assigned, if provided empty handle address. And loads provided component services into the registry, if provided component reference which is statically linked to this library.
[out] | registry | A service handle to registry service. |
[in] | comp_ref | A component structure referance name. |
false | success |
true | failure |
void minimal_chassis_services_refresh | ( | bool | use_related | ) |
This function refreshes the global service handles based on the use_related flag.
The global services are mysql_runtime_error, mysql_psi_system_v1 and mysql_rwlock_v1. If the use_related is ON then the globals are loaded with minimal chassis service implementations else they are loaded with the default service implementations
use_related | Used to decide which service implementation to load for globals. |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
dynamic_loader | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
dynamic_loader_metadata_enumerate | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
dynamic_loader_metadata_query | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
dynamic_loader_query | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
dynamic_loader_scheme_file | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
mysql_psi_system_v1 | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
mysql_runtime_error | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
mysql_rwlock_v1 | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
registry | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
registry_metadata_enumerate | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
registry_metadata_query | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
registry_query | |||
) |
PROVIDES_SERVICE | ( | mysql_minimal_chassis | , |
registry_registration | |||
) |
REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_psi_system_v1 | ) |
REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_runtime_error | ) |
REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_rwlock_v1 | ) |
const mysql_service_mysql_psi_system_v1_t SERVICE_IMPLEMENTATION | ( | mysql_minimal_chassis | , |
mysql_psi_system_v1 | |||
) |
my_h_service h_err_service |
const mysql_service_dynamic_loader_t imp_mysql_minimal_chassis_dynamic_loader |
const mysql_service_dynamic_loader_metadata_enumerate_t imp_mysql_minimal_chassis_dynamic_loader_metadata_enumerate |
const mysql_service_dynamic_loader_metadata_query_t imp_mysql_minimal_chassis_dynamic_loader_metadata_query |
const mysql_service_dynamic_loader_query_t imp_mysql_minimal_chassis_dynamic_loader_query |
const mysql_service_dynamic_loader_scheme_file_t imp_mysql_minimal_chassis_dynamic_loader_scheme_file |
const mysql_service_mysql_runtime_error_t imp_mysql_minimal_chassis_mysql_runtime_error |
const mysql_service_registry_t imp_mysql_minimal_chassis_registry |
const mysql_service_registry_metadata_enumerate_t imp_mysql_minimal_chassis_registry_metadata_enumerate |
const mysql_service_registry_metadata_query_t imp_mysql_minimal_chassis_registry_metadata_query |
const mysql_service_registry_query_t imp_mysql_minimal_chassis_registry_query |
const mysql_service_registry_registration_t imp_mysql_minimal_chassis_registry_registration |
mysql_component_t mysql_component_mysql_minimal_chassis |
|
extern |