~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/registry.cc

  • Committer: Brian Aker
  • Date: 2009-10-02 19:38:12 UTC
  • mfrom: (1152.1.7 merge)
  • Revision ID: brian@gaz-20091002193812-mpd61oecep74t6gd
Merge Monty + Brian for plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "drizzled/plugin.h"
24
24
#include "drizzled/show.h"
25
25
#include "drizzled/handler.h"
26
 
#include "drizzled/errmsg.h"
27
 
#include "drizzled/authentication.h"
28
 
#include "drizzled/qcache.h"
29
 
#include "drizzled/scheduling.h"
30
 
#include "drizzled/logging.h"
31
 
#include "drizzled/replication_services.h"
32
26
 
33
27
#include <string>
34
28
#include <vector>
35
29
#include <map>
36
30
 
37
31
using namespace std;
38
 
using namespace drizzled;
39
32
 
 
33
namespace drizzled
 
34
{
40
35
 
41
36
plugin::Handle *plugin::Registry::find(const LEX_STRING *name)
42
37
{
60
55
}
61
56
 
62
57
 
63
 
vector<plugin::Handle *> plugin::Registry::get_list(bool active)
 
58
vector<plugin::Handle *> plugin::Registry::getList(bool active)
64
59
{
65
60
  plugin::Handle *plugin= NULL;
66
61
 
82
77
  return plugins;
83
78
}
84
79
 
85
 
void plugin::Registry::add(StorageEngine *engine)
86
 
{
87
 
  add_storage_engine(engine);
88
 
}
89
 
 
90
 
void plugin::Registry::add(InfoSchemaTable *schema_table)
91
 
{
92
 
  add_infoschema_table(schema_table);
93
 
}
94
 
 
95
 
void plugin::Registry::add(Logging_handler *handler)
96
 
{
97
 
  add_logger(handler);
98
 
}
99
 
 
100
 
void plugin::Registry::add(Error_message_handler *handler)
101
 
{
102
 
  add_errmsg_handler(handler);
103
 
}
104
 
 
105
 
void plugin::Registry::add(Authentication *auth)
106
 
{
107
 
  add_authentication(auth);
108
 
}
109
 
 
110
 
void plugin::Registry::add(QueryCache *qcache)
111
 
{
112
 
  add_query_cache(qcache);
113
 
}
114
 
 
115
 
void plugin::Registry::add(plugin::SchedulerFactory *factory)
116
 
{
117
 
  add_scheduler_factory(factory);
118
 
}
119
 
 
120
 
 
121
 
void plugin::Registry::add(drizzled::plugin::CommandReplicator *replicator)
122
 
{
123
 
  add_replicator(replicator);
124
 
}
125
 
 
126
 
void plugin::Registry::add(drizzled::plugin::CommandApplier *applier)
127
 
{
128
 
  add_applier(applier);
129
 
}
130
 
 
131
 
void plugin::Registry::remove(StorageEngine *engine)
132
 
{
133
 
  remove_storage_engine(engine);
134
 
}
135
 
 
136
 
void plugin::Registry::remove(InfoSchemaTable *schema_table)
137
 
{
138
 
  remove_infoschema_table(schema_table);
139
 
}
140
 
 
141
 
void plugin::Registry::remove(Logging_handler *handler)
142
 
{
143
 
  remove_logger(handler);
144
 
}
145
 
 
146
 
void plugin::Registry::remove(Error_message_handler *handler)
147
 
{
148
 
  remove_errmsg_handler(handler);
149
 
}
150
 
 
151
 
void plugin::Registry::remove(Authentication *auth)
152
 
{
153
 
  remove_authentication(auth);
154
 
}
155
 
 
156
 
void plugin::Registry::remove(QueryCache *qcache)
157
 
{
158
 
  remove_query_cache(qcache);
159
 
}
160
 
 
161
 
void plugin::Registry::remove(plugin::SchedulerFactory *factory)
162
 
{
163
 
  remove_scheduler_factory(factory);
164
 
}
165
 
 
166
 
 
167
 
void plugin::Registry::remove(drizzled::plugin::CommandReplicator *replicator)
168
 
{
169
 
  remove_replicator(replicator);
170
 
}
171
 
 
172
 
void plugin::Registry::remove(drizzled::plugin::CommandApplier *applier)
173
 
{
174
 
  remove_applier(applier);
175
 
}
 
80
} /* namespace drizzled */