MySQL 9.1.0
Source Code Documentation
s_mysql_dynamic_loader Struct Reference

Service for managing the list of loaded Components. More...

#include <dynamic_loader.h>

Public Attributes

mysql_service_status_t(* load )(const char *urns[], int component_count)
 Loads specified group of components by URN, initializes them and registers all Service Implementations present in these components. More...
 
mysql_service_status_t(* unload )(const char *urns[], int component_count)
 Unloads specified group of components by URN, deinitializes them and unregisters all Service Implementations present in these components. More...
 

Detailed Description

Service for managing the list of loaded Components.

Member Data Documentation

◆ load

mysql_service_status_t(* s_mysql_dynamic_loader::load) (const char *urns[], int component_count)

Loads specified group of components by URN, initializes them and registers all Service Implementations present in these components.

Assures all dependencies will be met after loading specified components. The dependencies may be circular, in such case it's necessary to specify all components on cycle to load in one batch. From URNs specified the scheme part of URN (part before "://") is extracted and used to acquire Service Implementation of scheme component loader Service for specified scheme.

Parameters
urnsList of URNs of components to load.
component_countNumber of components on list to load.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

◆ unload

mysql_service_status_t(* s_mysql_dynamic_loader::unload) (const char *urns[], int component_count)

Unloads specified group of components by URN, deinitializes them and unregisters all Service Implementations present in these components.

Assumes, thous does not check it, all dependencies of not unloaded components will still be met after unloading specified components. The dependencies may be circular, in such case it's necessary to specify all components on cycle to unload in one batch. From URNs specified the scheme part of URN (part before "://") is extracted and used to acquire Service Implementation of scheme component loader Service for specified scheme.

Parameters
urnsList of URNs of components to unload.
component_countNumber of components on list to unload.
Returns
Status of performed operation
Return values
falsesuccess
truefailure

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