1284
1284
Internal type declarations for variables support
1285
1285
****************************************************************************/
1287
#undef MYSQL_SYSVAR_NAME
1288
#define MYSQL_SYSVAR_NAME(name) name
1287
#undef DRIZZLE_SYSVAR_NAME
1288
#define DRIZZLE_SYSVAR_NAME(name) name
1289
1289
#define PLUGIN_VAR_TYPEMASK 0x007f
1291
1291
#define EXTRA_OPTIONS 3 /* options for: 'foo', 'plugin-foo' and NULL */
1293
typedef DECLARE_MYSQL_SYSVAR_BASIC(sysvar_bool_t, bool);
1294
typedef DECLARE_MYSQL_THDVAR_BASIC(thdvar_bool_t, bool);
1295
typedef DECLARE_MYSQL_SYSVAR_BASIC(sysvar_str_t, char *);
1296
typedef DECLARE_MYSQL_THDVAR_BASIC(thdvar_str_t, char *);
1298
typedef DECLARE_MYSQL_SYSVAR_TYPELIB(sysvar_enum_t, unsigned long);
1299
typedef DECLARE_MYSQL_THDVAR_TYPELIB(thdvar_enum_t, unsigned long);
1300
typedef DECLARE_MYSQL_SYSVAR_TYPELIB(sysvar_set_t, uint64_t);
1301
typedef DECLARE_MYSQL_THDVAR_TYPELIB(thdvar_set_t, uint64_t);
1303
typedef DECLARE_MYSQL_SYSVAR_SIMPLE(sysvar_int_t, int);
1304
typedef DECLARE_MYSQL_SYSVAR_SIMPLE(sysvar_long_t, long);
1305
typedef DECLARE_MYSQL_SYSVAR_SIMPLE(sysvar_int64_t_t, int64_t);
1306
typedef DECLARE_MYSQL_SYSVAR_SIMPLE(sysvar_uint_t, uint);
1307
typedef DECLARE_MYSQL_SYSVAR_SIMPLE(sysvar_ulong_t, ulong);
1308
typedef DECLARE_MYSQL_SYSVAR_SIMPLE(sysvar_uint64_t_t, uint64_t);
1310
typedef DECLARE_MYSQL_THDVAR_SIMPLE(thdvar_int_t, int);
1311
typedef DECLARE_MYSQL_THDVAR_SIMPLE(thdvar_long_t, long);
1312
typedef DECLARE_MYSQL_THDVAR_SIMPLE(thdvar_int64_t_t, int64_t);
1313
typedef DECLARE_MYSQL_THDVAR_SIMPLE(thdvar_uint_t, uint);
1314
typedef DECLARE_MYSQL_THDVAR_SIMPLE(thdvar_ulong_t, ulong);
1315
typedef DECLARE_MYSQL_THDVAR_SIMPLE(thdvar_uint64_t_t, uint64_t);
1293
typedef DECLARE_DRIZZLE_SYSVAR_BASIC(sysvar_bool_t, bool);
1294
typedef DECLARE_DRIZZLE_THDVAR_BASIC(thdvar_bool_t, bool);
1295
typedef DECLARE_DRIZZLE_SYSVAR_BASIC(sysvar_str_t, char *);
1296
typedef DECLARE_DRIZZLE_THDVAR_BASIC(thdvar_str_t, char *);
1298
typedef DECLARE_DRIZZLE_SYSVAR_TYPELIB(sysvar_enum_t, unsigned long);
1299
typedef DECLARE_DRIZZLE_THDVAR_TYPELIB(thdvar_enum_t, unsigned long);
1300
typedef DECLARE_DRIZZLE_SYSVAR_TYPELIB(sysvar_set_t, uint64_t);
1301
typedef DECLARE_DRIZZLE_THDVAR_TYPELIB(thdvar_set_t, uint64_t);
1303
typedef DECLARE_DRIZZLE_SYSVAR_SIMPLE(sysvar_int_t, int);
1304
typedef DECLARE_DRIZZLE_SYSVAR_SIMPLE(sysvar_long_t, long);
1305
typedef DECLARE_DRIZZLE_SYSVAR_SIMPLE(sysvar_int64_t_t, int64_t);
1306
typedef DECLARE_DRIZZLE_SYSVAR_SIMPLE(sysvar_uint_t, uint);
1307
typedef DECLARE_DRIZZLE_SYSVAR_SIMPLE(sysvar_ulong_t, ulong);
1308
typedef DECLARE_DRIZZLE_SYSVAR_SIMPLE(sysvar_uint64_t_t, uint64_t);
1310
typedef DECLARE_DRIZZLE_THDVAR_SIMPLE(thdvar_int_t, int);
1311
typedef DECLARE_DRIZZLE_THDVAR_SIMPLE(thdvar_long_t, long);
1312
typedef DECLARE_DRIZZLE_THDVAR_SIMPLE(thdvar_int64_t_t, int64_t);
1313
typedef DECLARE_DRIZZLE_THDVAR_SIMPLE(thdvar_uint_t, uint);
1314
typedef DECLARE_DRIZZLE_THDVAR_SIMPLE(thdvar_ulong_t, ulong);
1315
typedef DECLARE_DRIZZLE_THDVAR_SIMPLE(thdvar_uint64_t_t, uint64_t);
1317
1317
typedef bool *(*mysql_sys_var_ptr_p)(THD* a_thd, int offset);