20
20
#ifndef DRIZZLED_PLUGIN_REGISTRY_H
21
21
#define DRIZZLED_PLUGIN_REGISTRY_H
23
#include "drizzled/slot/function.h"
24
#include "drizzled/slot/listen.h"
31
class InfoSchemaTable;
32
class Logging_handler;
33
class Error_message_handler;
27
#include "drizzled/gettext.h"
28
#include "drizzled/unireg.h"
41
class CommandReplicator;
44
class SchedulerFactory;
64
54
void add(Handle *plugin);
66
std::vector<Handle *> get_list(bool active);
68
void add(StorageEngine *engine);
69
void add(InfoSchemaTable *schema_table);
70
void add(Logging_handler *handler);
71
void add(Error_message_handler *handler);
72
void add(Authentication *auth);
73
void add(QueryCache *qcache);
74
void add(SchedulerFactory *scheduler);
75
void add(drizzled::plugin::CommandReplicator *replicator);
76
void add(drizzled::plugin::CommandApplier *applier);
78
void remove(StorageEngine *engine);
79
void remove(InfoSchemaTable *schema_table);
80
void remove(Logging_handler *handler);
81
void remove(Error_message_handler *handler);
82
void remove(Authentication *auth);
83
void remove(QueryCache *qcache);
84
void remove(SchedulerFactory *scheduler);
85
void remove(drizzled::plugin::CommandReplicator *replicator);
86
void remove(drizzled::plugin::CommandApplier *applier);
88
::drizzled::slot::Function function;
89
::drizzled::slot::Listen listen;
56
std::vector<Handle *> getList(bool active);
61
bool failed= T::addPlugin(plugin);
64
/* Can't use errmsg_printf here because we might be initializing the
65
* error_message plugin.
69
* Once plugin-base-class is merged, we'll add in this statment
71
* _("Fatal error: Failed initializing %s plugin."),
72
* plugin->getName().c_str());
79
void remove(T *plugin)
81
T::removePlugin(plugin);
92
86
} /* end namespace plugin */