307
310
PLUGIN_VAR_SET | ((opt) & PLUGIN_VAR_MASK), \
308
311
#name, comment, check, update, &varname, def, typelib }
310
#define DRIZZLE_THDVAR_BOOL(name, opt, comment, check, update, def) \
311
DECLARE_DRIZZLE_THDVAR_BASIC(name, char) = { \
312
PLUGIN_VAR_BOOL | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
313
#name, comment, check, update, -1, def, NULL}
315
#define DRIZZLE_THDVAR_STR(name, opt, comment, check, update, def) \
316
DECLARE_DRIZZLE_THDVAR_BASIC(name, char *) = { \
317
PLUGIN_VAR_STR | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
318
#name, comment, check, update, -1, def, NULL}
320
#define DRIZZLE_THDVAR_INT(name, opt, comment, check, update, def, min, max, blk) \
321
DECLARE_DRIZZLE_THDVAR_SIMPLE(name, int) = { \
322
PLUGIN_VAR_INT | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
323
#name, comment, check, update, -1, def, min, max, blk, NULL }
325
#define DRIZZLE_THDVAR_UINT(name, opt, comment, check, update, def, min, max, blk) \
326
DECLARE_DRIZZLE_THDVAR_SIMPLE(name, unsigned int) = { \
327
PLUGIN_VAR_INT | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
328
#name, comment, check, update, -1, def, min, max, blk, NULL }
330
#define DRIZZLE_THDVAR_LONG(name, opt, comment, check, update, def, min, max, blk) \
331
DECLARE_DRIZZLE_THDVAR_SIMPLE(name, long) = { \
332
PLUGIN_VAR_LONG | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
333
#name, comment, check, update, -1, def, min, max, blk, NULL }
335
#define DRIZZLE_THDVAR_ULONG(name, opt, comment, check, update, def, min, max, blk) \
336
DECLARE_DRIZZLE_THDVAR_SIMPLE(name, unsigned long) = { \
337
PLUGIN_VAR_LONG | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
338
#name, comment, check, update, -1, def, min, max, blk, NULL }
340
#define DRIZZLE_THDVAR_LONGLONG(name, opt, comment, check, update, def, min, max, blk) \
341
DECLARE_DRIZZLE_THDVAR_SIMPLE(name, int64_t) = { \
342
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
343
#name, comment, check, update, -1, def, min, max, blk, NULL }
345
#define DRIZZLE_THDVAR_ULONGLONG(name, opt, comment, check, update, def, min, max, blk) \
346
DECLARE_DRIZZLE_THDVAR_SIMPLE(name, uint64_t) = { \
347
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_THDLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
348
#name, comment, check, update, -1, def, min, max, blk, NULL }
350
#define DRIZZLE_THDVAR_ENUM(name, opt, comment, check, update, def, typelib) \
351
DECLARE_DRIZZLE_THDVAR_TYPELIB(name, unsigned long) = { \
352
PLUGIN_VAR_ENUM | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
313
#define DRIZZLE_SessionVAR_BOOL(name, opt, comment, check, update, def) \
314
DECLARE_DRIZZLE_SessionVAR_BASIC(name, char) = { \
315
PLUGIN_VAR_BOOL | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
316
#name, comment, check, update, -1, def, NULL}
318
#define DRIZZLE_SessionVAR_STR(name, opt, comment, check, update, def) \
319
DECLARE_DRIZZLE_SessionVAR_BASIC(name, char *) = { \
320
PLUGIN_VAR_STR | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
321
#name, comment, check, update, -1, def, NULL}
323
#define DRIZZLE_SessionVAR_INT(name, opt, comment, check, update, def, min, max, blk) \
324
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, int) = { \
325
PLUGIN_VAR_INT | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
326
#name, comment, check, update, -1, def, min, max, blk, NULL }
328
#define DRIZZLE_SessionVAR_UINT(name, opt, comment, check, update, def, min, max, blk) \
329
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, unsigned int) = { \
330
PLUGIN_VAR_INT | PLUGIN_VAR_SessionLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
331
#name, comment, check, update, -1, def, min, max, blk, NULL }
333
#define DRIZZLE_SessionVAR_LONG(name, opt, comment, check, update, def, min, max, blk) \
334
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, long) = { \
335
PLUGIN_VAR_LONG | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
336
#name, comment, check, update, -1, def, min, max, blk, NULL }
338
#define DRIZZLE_SessionVAR_ULONG(name, opt, comment, check, update, def, min, max, blk) \
339
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, unsigned long) = { \
340
PLUGIN_VAR_LONG | PLUGIN_VAR_SessionLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
341
#name, comment, check, update, -1, def, min, max, blk, NULL }
343
#define DRIZZLE_SessionVAR_LONGLONG(name, opt, comment, check, update, def, min, max, blk) \
344
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, int64_t) = { \
345
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
346
#name, comment, check, update, -1, def, min, max, blk, NULL }
348
#define DRIZZLE_SessionVAR_ULONGLONG(name, opt, comment, check, update, def, min, max, blk) \
349
DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, uint64_t) = { \
350
PLUGIN_VAR_LONGLONG | PLUGIN_VAR_SessionLOCAL | PLUGIN_VAR_UNSIGNED | ((opt) & PLUGIN_VAR_MASK), \
351
#name, comment, check, update, -1, def, min, max, blk, NULL }
353
#define DRIZZLE_SessionVAR_ENUM(name, opt, comment, check, update, def, typelib) \
354
DECLARE_DRIZZLE_SessionVAR_TYPELIB(name, unsigned long) = { \
355
PLUGIN_VAR_ENUM | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
353
356
#name, comment, check, update, -1, def, NULL, typelib }
355
#define DRIZZLE_THDVAR_SET(name, opt, comment, check, update, def, typelib) \
356
DECLARE_DRIZZLE_THDVAR_TYPELIB(name, uint64_t) = { \
357
PLUGIN_VAR_SET | PLUGIN_VAR_THDLOCAL | ((opt) & PLUGIN_VAR_MASK), \
358
#define DRIZZLE_SessionVAR_SET(name, opt, comment, check, update, def, typelib) \
359
DECLARE_DRIZZLE_SessionVAR_TYPELIB(name, uint64_t) = { \
360
PLUGIN_VAR_SET | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
358
361
#name, comment, check, update, -1, def, NULL, typelib }
360
363
/* accessor macros */