MySQL Forums
Forum List  »  Source, Builds, Binaries

Re: How is plugin load work?
Posted by: Kent Boortz
Date: July 19, 2017 08:30AM

I guess you found out already, but else you can find the
macros renaming these functions in "include/my_global.h"

#if defined(_WIN32)
#define dlsym(lib, name) (void*)GetProcAddress((HMODULE)lib, name)
#define dlopen(libname, unused) LoadLibraryEx(libname, NULL, 0)
#define dlclose(lib) FreeLibrary((HMODULE)lib)

I'm not 100% sure what load is for the plugins, but you can look
around in

sql-common/client_plugin.c
sql/sql_plugin.cc
sql/sql_udf.cc

kent

Kent Boortz, Release Staff Engineer
Oracle, the MySQL team, www.mysql.com

Options: ReplyQuote


Subject
Views
Written By
Posted
309
July 13, 2017 05:48AM
150
July 13, 2017 06:03AM
96
November 20, 2017 04:12AM
Re: How is plugin load work?
132
July 19, 2017 08:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.