|
Packit Service |
17f749 |
/************************************************************************************
|
|
Packit Service |
17f749 |
Copyright (C) 2013,2016 MariaDB Corporation AB
|
|
Packit Service |
17f749 |
|
|
Packit Service |
17f749 |
This library is free software; you can redistribute it and/or
|
|
Packit Service |
17f749 |
modify it under the terms of the GNU Library General Public
|
|
Packit Service |
17f749 |
License as published by the Free Software Foundation; either
|
|
Packit Service |
17f749 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
17f749 |
|
|
Packit Service |
17f749 |
This library is distributed in the hope that it will be useful,
|
|
Packit Service |
17f749 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
17f749 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
17f749 |
Library General Public License for more details.
|
|
Packit Service |
17f749 |
|
|
Packit Service |
17f749 |
You should have received a copy of the GNU Library General Public
|
|
Packit Service |
17f749 |
License along with this library; if not see <http://www.gnu.org/licenses>
|
|
Packit Service |
17f749 |
or write to the Free Software Foundation, Inc.,
|
|
Packit Service |
17f749 |
51 Franklin St., Fifth Floor, Boston, MA 02110, USA
|
|
Packit Service |
17f749 |
*************************************************************************************/
|
|
Packit Service |
17f749 |
#include <ma_odbc.h>
|
|
Packit Service |
17f749 |
|
|
Packit Service |
17f749 |
BOOL __stdcall DllMain ( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved )
|
|
Packit Service |
17f749 |
{
|
|
Packit Service |
17f749 |
switch (fdwReason) {
|
|
Packit Service |
17f749 |
case DLL_PROCESS_ATTACH:
|
|
Packit Service |
17f749 |
mysql_library_init(0, NULL, NULL);
|
|
Packit Service |
17f749 |
break;
|
|
Packit Service |
17f749 |
case DLL_PROCESS_DETACH:
|
|
Packit Service |
17f749 |
mysql_library_end();
|
|
Packit Service |
17f749 |
break;
|
|
Packit Service |
17f749 |
case DLL_THREAD_ATTACH:
|
|
Packit Service |
17f749 |
mysql_thread_init();
|
|
Packit Service |
17f749 |
break;
|
|
Packit Service |
17f749 |
case DLL_THREAD_DETACH:
|
|
Packit Service |
17f749 |
mysql_thread_end();
|
|
Packit Service |
17f749 |
break;
|
|
Packit Service |
17f749 |
}
|
|
Packit Service |
17f749 |
return TRUE;
|
|
Packit Service |
17f749 |
}
|
|
Packit Service |
17f749 |
|