~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/registry.cc

Merged in plugin-slot-reorg patches.

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
26
#include "drizzled/replication_services.h"
32
27
 
33
28
#include <string>
35
30
#include <map>
36
31
 
37
32
using namespace std;
38
 
using namespace drizzled;
39
33
 
 
34
namespace drizzled
 
35
{
40
36
 
41
37
plugin::Handle *plugin::Registry::find(const LEX_STRING *name)
42
38
{
87
83
  add_storage_engine(engine);
88
84
}
89
85
 
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)
 
86
void plugin::Registry::add(plugin::CommandReplicator *replicator)
122
87
{
123
88
  add_replicator(replicator);
124
89
}
125
90
 
126
 
void plugin::Registry::add(drizzled::plugin::CommandApplier *applier)
 
91
void plugin::Registry::add(plugin::CommandApplier *applier)
127
92
{
128
93
  add_applier(applier);
129
94
}
133
98
  remove_storage_engine(engine);
134
99
}
135
100
 
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)
 
101
void plugin::Registry::remove(plugin::CommandReplicator *replicator)
168
102
{
169
103
  remove_replicator(replicator);
170
104
}
171
105
 
172
 
void plugin::Registry::remove(drizzled::plugin::CommandApplier *applier)
 
106
void plugin::Registry::remove(plugin::CommandApplier *applier)
173
107
{
174
108
  remove_applier(applier);
175
109
}
 
110
 
 
111
} /* namespace drizzled */