~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin_registry.h

  • Committer: Monty Taylor
  • Date: 2009-08-05 08:52:52 UTC
  • mto: (1093.1.57 captain)
  • mto: This revision was merged to the branch mainline in revision 1115.
  • Revision ID: mordred@inaugust.com-20090805085252-27rso8llvaknwy5q
Added ListenHandler as a member of PluginRegistry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_PLUGIN_REGISTRY_H
21
21
#define DRIZZLED_PLUGIN_REGISTRY_H
22
22
 
 
23
#include "drizzled/listen.h"
23
24
 
24
25
#include <string>
25
26
#include <vector>
54
55
public:
55
56
  PluginRegistry() {}
56
57
 
 
58
  static PluginRegistry& singleton()
 
59
  {
 
60
    static PluginRegistry registry;
 
61
    return registry;
 
62
  }
 
63
 
57
64
  drizzled::plugin::Handle *find(const LEX_STRING *name);
58
65
 
59
66
  void add(drizzled::plugin::Handle *plugin);
84
91
  void remove(const drizzled::plugin::Listen &listen_obj);
85
92
  void remove(drizzled::plugin::Replicator *replicator);
86
93
  void remove(drizzled::plugin::Applier *applier);
 
94
 
 
95
  drizzled::ListenHandler listen;
87
96
};
88
97
 
89
98
#endif /* DRIZZLED_PLUGIN_REGISTRY_H */