#include <dynamic_loader_scheme_file_imp.h>
◆ list_components_func
typedef mysql_component_t *(* mysql_dynamic_loader_scheme_file_imp::list_components_func) () |
|
private |
◆ my_registry
◆ deinit()
void mysql_dynamic_loader_scheme_file_imp::deinit |
( |
| ) |
|
|
static |
De-initializes RW lock, all other structures doesn't require any action.
◆ init()
void mysql_dynamic_loader_scheme_file_imp::init |
( |
| ) |
|
|
static |
Initializes file:// scheme for dynamic loader for usage.
Initializes RW lock, all other structures should be empty. Shouldn't be called multiple times.
◆ load()
Loads components that are located in executable file specified by URN.
We assume that URN starts with file://, but accept any. Will not success when called multiple times on the same file.
- Parameters
-
| urn | URN to file to load components from. |
[out] | out_data | Pointer to pointer to MySQL component data structures to set result components data retrieved from specified file. |
- Returns
- Status of performed operation
- Return values
-
false | success |
true | Failure, may be caused when name does not contain ://, cannot be located, is not proper executable file or does not contain proper initialization function. |
◆ unload()
Unloads file that was previously loaded.
The URN string must be exactly the same as one used during call to load. Although you can call load() on specified URN multiple times, subsequent calls unload() will always fail, and all components from specified file will be invalid after first call to unload().
- Parameters
-
urn | URN to file to unload all components from. |
- Returns
- Status of performed operation
- Return values
-
◆ library_entry_set
◆ LOCK_dynamic_loader_scheme_file
mysql_rwlock_t mysql_dynamic_loader_scheme_file_imp::LOCK_dynamic_loader_scheme_file |
|
staticprivate |
◆ object_files_list
The documentation for this class was generated from the following files: