~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin_registry.h

This patch does a couple things in preparation for publisher and
subscriber code and cleaning up the replication API:

* Renames Applier to CommandApplier and Replicator to CommandReplicator.  This makes
it much clearer *what* is being applied or replicated...

* Establishes a Global Transaction ID typedef in ReplicationServices that
other plugins and code can use.  The upcoming CommandReader plugin API uses
this typedef

* Updates the using namespace in all source files to be correct per style 
guidelines

* Converts pass-by-pointer to pass by reference and makes apply() and replicate()
API calls const correct.  Now, the only time pointers are passed in API calls is
for pointer-to-base-class arguments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
{
40
40
namespace plugin
41
41
{
42
 
class Replicator;
43
 
class Applier;
 
42
class CommandReplicator;
 
43
class CommandApplier;
44
44
class Handle;
45
45
}
46
46
}
71
71
  void add(Authentication *auth);
72
72
  void add(QueryCache *qcache);
73
73
  void add(SchedulerFactory *scheduler);
74
 
  void add(drizzled::plugin::Replicator *replicator);
75
 
  void add(drizzled::plugin::Applier *applier);
 
74
  void add(drizzled::plugin::CommandReplicator *replicator);
 
75
  void add(drizzled::plugin::CommandApplier *applier);
76
76
  void add(const Listen &listen_obj);
77
77
 
78
78
  void remove(StorageEngine *engine);
83
83
  void remove(Authentication *auth);
84
84
  void remove(QueryCache *qcache);
85
85
  void remove(SchedulerFactory *scheduler);
86
 
  void remove(drizzled::plugin::Replicator *replicator);
87
 
  void remove(drizzled::plugin::Applier *applier);
 
86
  void remove(drizzled::plugin::CommandReplicator *replicator);
 
87
  void remove(drizzled::plugin::CommandApplier *applier);
88
88
  void remove(const Listen &listen_obj);
89
89
 
90
90
};