~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: lbieber
  • Date: 2010-10-07 02:59:11 UTC
  • mfrom: (1818.1.2 build)
  • Revision ID: lbieber@orisndriz08-20101007025911-rz1n8q23hrwxks6v
Merge Brian - Fix a large number of warning issues on ICC. sql_string becomes 64bit
Merge Monty - clean up ICC warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
197
197
*/
198
198
 
199
199
 
 
200
#define DECLARE_DRIZZLE_SYSVAR_BOOL(name) struct { \
 
201
  DRIZZLE_PLUGIN_VAR_HEADER;      \
 
202
  bool *value;                  \
 
203
  bool def_val;           \
 
204
} DRIZZLE_SYSVAR_NAME(name)
 
205
 
200
206
#define DECLARE_DRIZZLE_SYSVAR_BASIC(name, type) struct { \
201
207
  DRIZZLE_PLUGIN_VAR_HEADER;      \
202
208
  type *value;                  \
220
226
  DECLARE_SessionVAR_FUNC(type);    \
221
227
} DRIZZLE_SYSVAR_NAME(name)
222
228
 
 
229
#define DECLARE_DRIZZLE_SessionVAR_BOOL(name) struct { \
 
230
  DRIZZLE_PLUGIN_VAR_HEADER;      \
 
231
  int offset;                   \
 
232
  bool def_val;           \
 
233
  DECLARE_SessionVAR_FUNC(bool);    \
 
234
} DRIZZLE_SYSVAR_NAME(name)
 
235
 
223
236
#define DECLARE_DRIZZLE_SessionVAR_SIMPLE(name, type) struct { \
224
237
  DRIZZLE_PLUGIN_VAR_HEADER;      \
225
238
  int offset;                   \
241
254
  the following declarations are for use by plugin implementors
242
255
*/
243
256
 
 
257
#define DECLARE_DRIZZLE_SYSVAR_BOOL(name) struct { \
 
258
  DRIZZLE_PLUGIN_VAR_HEADER;      \
 
259
  bool *value;                  \
 
260
  bool def_val;           \
 
261
} DRIZZLE_SYSVAR_NAME(name)
 
262
 
 
263
 
244
264
#define DRIZZLE_SYSVAR_BOOL(name, varname, opt, comment, check, update, def) \
245
 
DECLARE_DRIZZLE_SYSVAR_BASIC(name, bool) = { \
 
265
  DECLARE_DRIZZLE_SYSVAR_BOOL(name) = { \
246
266
  PLUGIN_VAR_BOOL | ((opt) & PLUGIN_VAR_MASK), \
247
267
  #name, comment, check, update, &varname, def}
248
268
 
 
269
#define DECLARE_DRIZZLE_SYSVAR_BASIC(name, type) struct { \
 
270
  DRIZZLE_PLUGIN_VAR_HEADER;      \
 
271
  type *value;                  \
 
272
  const type def_val;           \
 
273
} DRIZZLE_SYSVAR_NAME(name)
 
274
 
249
275
#define DRIZZLE_SYSVAR_STR(name, varname, opt, comment, check, update, def) \
250
276
DECLARE_DRIZZLE_SYSVAR_BASIC(name, char *) = { \
251
277
  PLUGIN_VAR_STR | ((opt) & PLUGIN_VAR_MASK), \
282
308
  #name, comment, check, update, &varname, def, min, max, blk }
283
309
 
284
310
#define DRIZZLE_SessionVAR_BOOL(name, opt, comment, check, update, def) \
285
 
DECLARE_DRIZZLE_SessionVAR_BASIC(name, char) = { \
 
311
DECLARE_DRIZZLE_SessionVAR_BOOL(name) = { \
286
312
  PLUGIN_VAR_BOOL | PLUGIN_VAR_SessionLOCAL | ((opt) & PLUGIN_VAR_MASK), \
287
313
  #name, comment, check, update, -1, def, NULL}
288
314