~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*****************************************************************************

Copyright (C) 2008, 2009, Innobase Oy. All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
St, Fifth Floor, Boston, MA 02110-1301 USA

*****************************************************************************/

/*******************************************************************//**
@file handler/handler0vars.h
This file contains accessor functions for dynamic plugin on Windows.
***********************************************************************/

#if defined __WIN__ && defined MYSQL_DYNAMIC_PLUGIN
/*******************************************************************//**
This is a list of externals that can not be resolved by delay loading.
They have to be resolved indirectly via their addresses in the .map file.
All of them are external variables. */
extern	CHARSET_INFO*		wdl_my_charset_bin;
extern	CHARSET_INFO*		wdl_my_charset_latin1;
extern	CHARSET_INFO*		wdl_my_charset_filename;
extern	CHARSET_INFO**		wdl_system_charset_info;
extern	CHARSET_INFO**		wdl_default_charset_info;
extern	CHARSET_INFO**		wdl_all_charsets;
extern	system_variables*	wdl_global_system_variables;
extern	char*			wdl_mysql_real_data_home;
extern	char**			wdl_mysql_data_home;
extern	char**			wdl_tx_isolation_names;
extern	char*			wdl_reg_ext;
extern	pthread_mutex_t*	wdl_LOCK_thread_count;
extern	key_map*		wdl_key_map_full;
extern	MY_TMPDIR*		wdl_mysql_tmpdir_list;
extern	bool*			wdl_mysqld_embedded;
extern	uint*			wdl_lower_case_table_names;
extern	ulong*			wdl_specialflag;
extern	int*			wdl_my_umask;

#define my_charset_bin		(*wdl_my_charset_bin)
#define my_charset_latin1	(*wdl_my_charset_latin1)
#define my_charset_filename	(*wdl_my_charset_filename)
#define system_charset_info	(*wdl_system_charset_info)
#define default_charset_info	(*wdl_default_charset_info)
#define all_charsets		(wdl_all_charsets)
#define global_system_variables	(*wdl_global_system_variables)
#define mysql_real_data_home	(wdl_mysql_real_data_home)
#define mysql_data_home		(*wdl_mysql_data_home)
#define tx_isolation_names	(wdl_tx_isolation_names)
#define reg_ext			(wdl_reg_ext)
#define LOCK_thread_count	(*wdl_LOCK_thread_count)
#define key_map_full		(*wdl_key_map_full)
#define mysql_tmpdir_list	(*wdl_mysql_tmpdir_list)
#define mysqld_embedded		(*wdl_mysqld_embedded)
#define lower_case_table_names	(*wdl_lower_case_table_names)
#define specialflag		(*wdl_specialflag)
#define my_umask		(*wdl_my_umask)

#endif