~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin_registry.h

Merging Monty's plugin class cleanup round 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <vector>
26
26
#include <map>
27
27
 
28
 
struct st_plugin_int;
29
28
class StorageEngine;
30
29
class InfoSchemaTable;
31
30
class Function_builder;
40
39
namespace plugin
41
40
{
42
41
class Replicator;
 
42
class Handle;
43
43
}
44
44
}
45
45
 
46
46
class PluginRegistry
47
47
{
48
48
private:
49
 
  std::map<std::string, st_plugin_int *>
 
49
  std::map<std::string, drizzled::plugin::Handle *>
50
50
    plugin_map;
51
51
 
52
52
  PluginRegistry(const PluginRegistry&);
54
54
  PluginRegistry() {}
55
55
 
56
56
 
57
 
  st_plugin_int *find(const LEX_STRING *name);
58
 
 
59
 
  void add(st_plugin_int *plugin);
60
 
 
61
 
  std::vector<st_plugin_int *> get_list(bool active);
 
57
  drizzled::plugin::Handle *find(const LEX_STRING *name);
 
58
 
 
59
  void add(drizzled::plugin::Handle *plugin);
 
60
 
 
61
  std::vector<drizzled::plugin::Handle *> get_list(bool active);
62
62
  static PluginRegistry& getPluginRegistry();
63
63
 
64
64
  void add(StorageEngine *engine);