~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Brian Aker
  • Date: 2010-03-17 19:18:40 UTC
  • mto: This revision was merged to the branch mainline in revision 1354.
  • Revision ID: brian@gaz-20100317191840-9ro7fajqp6lhaqjo
Update, we now have all of the ANSI INFORMATION_SCHEMA listed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <drizzled/plugin/module.h>
27
27
#include "drizzled/plugin/version.h"
28
28
#include "drizzled/definitions.h"
29
 
#include "drizzled/plugin/context.h"
30
29
 
31
30
 
32
31
namespace drizzled
43
42
 
44
43
class sys_var;
45
44
typedef drizzle_lex_string LEX_STRING;
46
 
struct option;
 
45
struct my_option;
47
46
 
48
47
extern char *opt_plugin_add;
49
48
extern char *opt_plugin_remove;
67
66
 
68
67
 
69
68
#define DRIZZLE_DECLARE_PLUGIN_END
70
 
#define DRIZZLE_PLUGIN(init,system) \
 
69
#define DRIZZLE_PLUGIN(init,deinit,system) \
71
70
  DRIZZLE_DECLARE_PLUGIN \
72
71
  { \
73
72
    DRIZZLE_VERSION_ID, \
76
75
    STRINGIFY_ARG(PANDORA_MODULE_AUTHOR), \
77
76
    STRINGIFY_ARG(PANDORA_MODULE_TITLE), \
78
77
    PANDORA_MODULE_LICENSE, \
79
 
    init, system, NULL \
 
78
    init, deinit, system, NULL \
80
79
  } 
81
80
 
82
81
 
356
355
  DRIZZLE_PLUGIN_VAR_HEADER;
357
356
};
358
357
 
359
 
void plugin_opt_set_limits(option *options, const drizzle_sys_var *opt);
 
358
void plugin_opt_set_limits(my_option *options, const drizzle_sys_var *opt);
360
359
 
361
360
struct drizzle_value
362
361
{
379
378
                        int *argc, char **argv,
380
379
                        bool skip_init);
381
380
extern void plugin_shutdown(plugin::Registry &plugins);
382
 
extern void my_print_help_inc_plugins(option *options);
 
381
extern void my_print_help_inc_plugins(my_option *options);
383
382
extern bool plugin_is_ready(const LEX_STRING *name, int type);
384
383
extern void plugin_sessionvar_init(Session *session);
385
384
extern void plugin_sessionvar_cleanup(Session *session);