23
23
#include <boost/program_options.hpp>
24
24
#include <boost/filesystem.hpp>
26
#include <drizzled/module/manifest.h>
27
#include <drizzled/module/module.h>
28
#include <drizzled/plugin/version.h>
29
#include <drizzled/module/context.h>
30
#include <drizzled/definitions.h>
32
#include <drizzled/lex_string.h>
33
#include <drizzled/sys_var.h>
34
#include <drizzled/xid.h>
36
#include <drizzled/visibility.h>
26
#include "drizzled/module/manifest.h"
27
#include "drizzled/module/module.h"
28
#include "drizzled/plugin/version.h"
29
#include "drizzled/module/context.h"
30
#include "drizzled/definitions.h"
32
#include "drizzled/lex_string.h"
33
#include "drizzled/sys_var.h"
34
#include "drizzled/xid.h"
64
63
#define PANDORA_CPP_NAME(x) _drizzled_ ## x ## _plugin_
65
64
#define PANDORA_PLUGIN_NAME(x) PANDORA_CPP_NAME(x)
66
65
#define DRIZZLE_DECLARE_PLUGIN \
67
DRIZZLED_API ::drizzled::module::Manifest PANDORA_PLUGIN_NAME(PANDORA_MODULE_NAME)=
66
::drizzled::module::Manifest PANDORA_PLUGIN_NAME(PANDORA_MODULE_NAME)=
70
69
#define DRIZZLE_DECLARE_PLUGIN_END
77
76
STRINGIFY_ARG(PANDORA_MODULE_AUTHOR), \
78
77
STRINGIFY_ARG(PANDORA_MODULE_TITLE), \
79
78
PANDORA_MODULE_LICENSE, \
81
STRINGIFY_ARG(PANDORA_MODULE_DEPENDENCIES), \
79
init, system, options \
174
171
extern bool plugin_init(module::Registry ®istry,
175
172
boost::program_options::options_description &long_options);
176
173
extern bool plugin_finalize(module::Registry ®istry);
177
extern void plugin_startup_window(module::Registry ®istry, drizzled::Session &session);
178
174
extern void my_print_help_inc_plugins(option *options);
179
175
extern bool plugin_is_ready(const LEX_STRING *name, int type);
180
176
extern void plugin_sessionvar_init(Session *session);
181
177
extern void plugin_sessionvar_cleanup(Session *session);
178
extern sys_var *intern_find_sys_var(const char *str, uint32_t, bool no_error);
183
180
int session_in_lock_tables(const Session *session);
184
DRIZZLED_API int64_t session_test_options(const Session *session, int64_t test_options);
181
int session_tablespace_op(const Session *session);
182
void set_session_proc_info(Session *session, const char *info);
183
const char *get_session_proc_info(Session *session);
184
int64_t session_test_options(const Session *session, int64_t test_options);
185
int session_sql_command(const Session *session);
186
enum_tx_isolation session_tx_isolation(const Session *session);
185
188
void compose_plugin_add(std::vector<std::string> options);
186
189
void compose_plugin_remove(std::vector<std::string> options);
187
190
void notify_plugin_load(std::string in_plugin_load);