26#ifndef MYSQL_HARNESS_DYNAMIC_LOADER_INCLUDED
27#define MYSQL_HARNESS_DYNAMIC_LOADER_INCLUDED
30#include <system_error>
36#include "harness_export.h"
88 : filename_{
std::move(rhs.filename_)},
90 error_msg_{
std::move(rhs.error_msg_)} {}
97 filename_ = std::move(rhs.filename_);
98 handle_ = std::exchange(rhs.handle_,
nullptr);
99 error_msg_ = std::move(rhs.error_msg_);
165 : search_path_{
std::move(search_path)} {}
174 const std::string &
name)
const;
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
A DynamicLibrary.
Definition: dynamic_loader.h:73
DynamicLibrary(std::string filename, native_handle_type handle)
construct DynamicLibrary from native_handle.
Definition: dynamic_loader.h:144
DynamicLibrary(DynamicLibrary &&rhs)
Definition: dynamic_loader.h:87
DynamicLibrary & operator=(DynamicLibrary &&rhs)
Definition: dynamic_loader.h:96
void * native_handle_type
Definition: dynamic_loader.h:78
DynamicLibrary & operator=(const DynamicLibrary &)=delete
std::string error_msg() const
get error message if symbol() failed with DynamicLoaderErrc::DlError.
Definition: dynamic_loader.h:128
std::string filename() const
get filename of the loaded module.
Definition: dynamic_loader.h:133
DynamicLibrary(const DynamicLibrary &)=delete
~DynamicLibrary()
destruct a DynamicLibrary.
Definition: dynamic_loader.h:108
std::string error_msg_
Definition: dynamic_loader.h:151
std::string filename_
Definition: dynamic_loader.h:147
native_handle_type native_handle() const
get the native handle to the shared object.
Definition: dynamic_loader.h:118
Loader for DynamicLibrary.
Definition: dynamic_loader.h:157
DynamicLoader(std::string search_path)
construct DynamicLoader with search_path.
Definition: dynamic_loader.h:164
DynamicLoader()
Definition: dynamic_loader.h:159
std::string error_msg_
Definition: dynamic_loader.h:189
std::string search_path() const
get current search path.
Definition: dynamic_loader.h:184
std::string search_path_
Definition: dynamic_loader.h:187
std::string error_msg() const
get error message if load() failed with DynamicLoaderErrc::DlError.
Definition: dynamic_loader.h:179
Definition: expected.h:286
bool load(THD *, const dd::String_type &fname, dd::String_type *buf)
Read an sdi file from disk and store in a buffer.
Definition: sdi_file.cc:308
std::error_code make_error_code(DynamicLoaderErrc ec)
make error_code from a DynamicLoaderErrc.
Definition: dynamic_loader.cc:79
DynamicLoaderErrc
error-codes of the DynamicLoader and DynamicLibrary.
Definition: dynamic_loader.h:46
static int handle(int sql_errno, const char *sqlstate, const char *message, void *state)
Bridge function between the C++ API offered by this module and the C API of the parser service.
Definition: services.cc:64
Definition: gcs_xcom_synode.h:64
const char * filename
Definition: pfs_example_component_population.cc:67
case opt name
Definition: sslopt-case.h:29