~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/registry.cc

Merged in latest plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
  handle_map[add_str]= handle;
55
55
}
56
56
 
57
 
void plugin::Registry::add(plugin::Plugin *plugin)
58
 
{
59
 
  plugin->setHandle(current_handle);
60
 
  plugin_registry.add(plugin); 
61
 
}
62
 
 
63
 
void plugin::Registry::remove(const plugin::Plugin *plugin)
64
 
{
65
 
  plugin_registry.remove(plugin);
66
 
}
67
 
 
68
57
vector<plugin::Handle *> plugin::Registry::get_list(bool active)
69
58
{
70
59
  plugin::Handle *plugin= NULL;
87
76
  return plugins;
88
77
}
89
78
 
90
 
  void plugin::Registry::add(plugin::CommandReplicator *plugin)
91
 
  {
92
 
    addPlugin(plugin);
93
 
    command_replicator.add(plugin);
94
 
  }
95
 
  void plugin::Registry::add(plugin::CommandApplier *plugin)
96
 
  {
97
 
    addPlugin(plugin);
98
 
    command_applier.add(plugin);
99
 
  }
100
 
  void plugin::Registry::add(plugin::ErrorMessage *plugin)
101
 
  {
102
 
    addPlugin(plugin);
103
 
    error_message.add(plugin);
104
 
  }
105
 
  void plugin::Registry::add(plugin::Authentication *plugin)
106
 
  {
107
 
    addPlugin(plugin);
108
 
    authentication.add(plugin);
109
 
  }
110
 
  void plugin::Registry::add(plugin::QueryCache *plugin)
111
 
  {
112
 
    addPlugin(plugin);
113
 
    query_cache.add(plugin);
114
 
  }
115
 
  void plugin::Registry::add(plugin::SchedulerFactory *plugin)
116
 
  {
117
 
    addPlugin(plugin);
118
 
    scheduler.add(plugin);
119
 
  }
120
 
  void plugin::Registry::add(plugin::Function *plugin)
121
 
  {
122
 
    addPlugin(plugin);
123
 
    function.add(plugin);
124
 
  }
125
 
  void plugin::Registry::add(plugin::Listen *plugin)
126
 
  {
127
 
    addPlugin(plugin);
128
 
    listen.add(plugin);
129
 
  }
130
 
  void plugin::Registry::add(plugin::Logging *plugin)
131
 
  {
132
 
    addPlugin(plugin);
133
 
    logging.add(plugin);
134
 
  }
135
 
  void plugin::Registry::add(plugin::InfoSchemaTable *plugin)
136
 
  {
137
 
    addPlugin(plugin);
138
 
    info_schema.add(plugin);
139
 
  }
140
 
 
141
 
  void plugin::Registry::remove(plugin::CommandReplicator *plugin)
142
 
  {
143
 
    removePlugin(plugin);
144
 
    command_replicator.remove(plugin);
145
 
  }
146
 
  void plugin::Registry::remove(plugin::CommandApplier *plugin)
147
 
  {
148
 
    removePlugin(plugin);
149
 
    command_applier.remove(plugin);
150
 
  }
151
 
  void plugin::Registry::remove(plugin::ErrorMessage *plugin)
152
 
  {
153
 
    removePlugin(plugin);
154
 
    error_message.remove(plugin);
155
 
  }
156
 
  void plugin::Registry::remove(plugin::Authentication *plugin)
157
 
  {
158
 
    removePlugin(plugin);
159
 
    authentication.remove(plugin);
160
 
  }
161
 
  void plugin::Registry::remove(plugin::QueryCache *plugin)
162
 
  {
163
 
    removePlugin(plugin);
164
 
    query_cache.remove(plugin);
165
 
  }
166
 
  void plugin::Registry::remove(plugin::SchedulerFactory *plugin)
167
 
  {
168
 
    removePlugin(plugin);
169
 
    scheduler.remove(plugin);
170
 
  }
171
 
  void plugin::Registry::remove(plugin::Function *plugin)
172
 
  {
173
 
    removePlugin(plugin);
174
 
    function.remove(plugin);
175
 
  }
176
 
  void plugin::Registry::remove(plugin::Listen *plugin)
177
 
  {
178
 
    removePlugin(plugin);
179
 
    listen.remove(plugin);
180
 
  }
181
 
  void plugin::Registry::remove(plugin::Logging *plugin)
182
 
  {
183
 
    removePlugin(plugin);
184
 
    logging.remove(plugin);
185
 
  }
186
 
  void plugin::Registry::remove(plugin::InfoSchemaTable *plugin)
187
 
  {
188
 
    removePlugin(plugin);
189
 
    info_schema.remove(plugin);
190
 
  }
191
79
} /* namespace drizzled */