Function mysqlclient_sys::mysql_client_register_plugin
[−]
[src]
pub unsafe extern fn mysql_client_register_plugin(mysql: *mut st_mysql,
plugin: *mut st_mysql_client_plugin)
-> *mut st_mysql_client_plugin
adds a plugin structure to the list of loaded plugins
This is useful if an application has the necessary functionality (for example, a special load data handler) statically linked into the application binary. It can use this function to register the plugin directly, avoiding the need to factor it out into a shared object.
@param mysql MYSQL structure. It is only used for error reporting @param plugin an st_mysql_client_plugin structure to register
@retval a pointer to the plugin, or NULL in case of a failure