Checks if path specified to load is contained in plug-in directory and change it to absolute one using plug-in directory.
More...
#include <dynamic_loader_path_filter_imp.h>
Checks if path specified to load is contained in plug-in directory and change it to absolute one using plug-in directory.
Calls wrapped file scheme service implementation on calculated absolute URN. Effectively it act as a filtering and mapping service.
◆ check_and_make_absolute_urn()
bool mysql_dynamic_loader_scheme_file_path_filter_imp::check_and_make_absolute_urn |
( |
const char * |
input_urn, |
|
|
std::string & |
out_path |
|
) |
| |
|
staticprivate |
Ensure that the dynamic library doesn't have a path.
This is done to ensure that only approved libraries from the plug-in directory are used (to make this even remotely secure). Extracts real absolute path to file in plug-in directory.
- Parameters
-
| input_urn | URN with path to validate and make absolute. |
[out] | out_path | String to put result URN to. |
◆ load()
Checks if path specified to load is contained in plug-in directory and change it to absolute one using plug-in directory.
Calls wrapped file scheme service implementation on calculated absolute URN.
- 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
-
◆ unload()
Checks if path specified to load is contained in plug-in directory and change it to absolute one using plug-in directory.
Calls wrapped file scheme service implementation on calculated absolute URN.
- Parameters
-
urn | URN to file to unload all components from. |
- Returns
- Status of performed operation
- Return values
-
The documentation for this class was generated from the following files: