~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 15:58:22 UTC
  • mto: This revision was merged to the branch mainline in revision 2449.
  • Revision ID: olafvdspek@gmail.com-20111024155822-t0k04ojblkqf8v6z
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
  automatically at the end of the statement.
102
102
*/
103
103
 
104
 
typedef int (*var_check_func)(Session *session,
105
 
                                    drizzle_sys_var *var,
106
 
                                    void *save, drizzle_value *value);
 
104
typedef int (*var_check_func)(Session*, drizzle_sys_var*, void* save, drizzle_value*);
107
105
 
108
106
/*
109
107
  SYNOPSIS
119
117
   and persist it in the provided pointer to the dynamic variable.
120
118
   For example, strings may require memory to be allocated.
121
119
*/
122
 
typedef void (*var_update_func)(Session *session,
123
 
                                      drizzle_sys_var *var,
124
 
                                      void *var_ptr, const void *save);
 
120
typedef void (*var_update_func)(Session*, drizzle_sys_var*, void*, const void* save);
125
121
 
126
122
 
127
123
 
147
143
  Miscellaneous functions for plugin implementors
148
144
*/
149
145
 
150
 
extern bool plugin_init(module::Registry &registry,
151
 
                        boost::program_options::options_description &long_options);
152
 
extern bool plugin_finalize(module::Registry &registry);
153
 
extern void plugin_startup_window(module::Registry &registry, drizzled::Session &session);
154
 
extern void my_print_help_inc_plugins(option *options);
155
 
extern bool plugin_is_ready(const lex_string_t *name, int type);
156
 
extern void plugin_sessionvar_init(Session *session);
157
 
extern void plugin_sessionvar_cleanup(Session *session);
 
146
extern bool plugin_init(module::Registry&, boost::program_options::options_description &long_options);
 
147
extern bool plugin_finalize(module::Registry&);
 
148
extern void plugin_startup_window(module::Registry&, drizzled::Session&);
 
149
extern void my_print_help_inc_plugins(option* options);
 
150
extern void plugin_sessionvar_init(Session*);
 
151
extern void plugin_sessionvar_cleanup(Session*);
158
152
 
159
 
int session_in_lock_tables(const Session *session);
160
 
DRIZZLED_API int64_t session_test_options(const Session *session, int64_t test_options);
161
 
void compose_plugin_add(std::vector<std::string> options);
162
 
void compose_plugin_remove(std::vector<std::string> options);
163
 
void notify_plugin_load(std::string in_plugin_load);
 
153
DRIZZLED_API int64_t session_test_options(const Session*, int64_t test_options);
 
154
void compose_plugin_add(const std::vector<std::string>& options);
 
155
void compose_plugin_remove(const std::vector<std::string>& options);
 
156
void notify_plugin_load(const std::string& in_plugin_load);
164
157
 
165
158
 
166
159
/**
178
171
DRIZZLED_API int tmpfile(const char *prefix);
179
172
 
180
173
} /* namespace drizzled */
181
 
 
182