17
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef DRIZZLED_PLUGIN_HANDLE_H
21
#define DRIZZLED_PLUGIN_HANDLE_H
23
#include <drizzled/lex_string.h>
24
#include <mysys/my_alloc.h>
20
#ifndef DRIZZLED_PLUGIN_MODULE_H
21
#define DRIZZLED_PLUGIN_MODULE_H
24
* @file Defines a Plugin Module
26
* A plugin::Module is the fundamental functional element of the plugin system.
27
* Plugins are inited and deinited by module. A module init can register one
28
* or more plugin::Plugin objects.
33
#include "drizzled/plugin/manifest.h"
36
/* A handle of a plugin */
39
47
const std::string name;
48
const Manifest *manifest;
42
50
Library *plugin_dl;
44
MEM_ROOT mem_root; /* memory for dynamic plugin structures */
45
52
sys_var *system_vars; /* server variables for this plugin */
46
Handle(Manifest *manifest_arg, Library *library_arg)
53
Module(const Manifest *manifest_arg, Library *library_arg)
47
54
: name(manifest_arg->name), manifest(manifest_arg), plugin_dl(library_arg),
48
mem_root(), system_vars(NULL) {}
58
assert(manifest != NULL);
50
Handle(Manifest *manifest_arg)
61
Module(const Manifest *manifest_arg)
51
62
: name(manifest_arg->name), manifest(manifest_arg), plugin_dl(NULL),
52
mem_root(), system_vars(NULL) {}
66
assert(manifest != NULL);
54
69
const std::string& getName() const