~drizzle-trunk/drizzle/development

1130.1.2 by Monty Taylor
Re-org'd the replication stuff into slots.
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
4
 *  Copyright (C) 2009 Sun Microsystems, Inc.
1130.1.2 by Monty Taylor
Re-org'd the replication stuff into slots.
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; version 2 of the License.
9
 *
10
 *  This program is distributed in the hope that it will be useful,
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 *  GNU General Public License for more details.
14
 *
15
 *  You should have received a copy of the GNU General Public License
16
 *  along with this program; if not, write to the Free Software
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
19
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
20
#include <config.h>
1130.1.2 by Monty Taylor
Re-org'd the replication stuff into slots.
21
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
22
#include <drizzled/plugin/plugin.h>
23
#include <drizzled/plugin/transaction_replicator.h>
24
#include <drizzled/replication_services.h>
1130.1.2 by Monty Taylor
Re-org'd the replication stuff into slots.
25
1130.3.10 by Monty Taylor
Cleaned up service namespacing.
26
namespace drizzled
27
{
1130.1.12 by Monty Taylor
Moved service stuff into plugin/
28
1143.2.10 by Jay Pipes
Phase 2 new replication work:
29
bool plugin::TransactionReplicator::addPlugin(plugin::TransactionReplicator *replicator)
1130.1.2 by Monty Taylor
Re-org'd the replication stuff into slots.
30
{
31
  ReplicationServices &replication_services= ReplicationServices::singleton();
32
  replication_services.attachReplicator(replicator);
1130.1.19 by Monty Taylor
Added error reporting to plugin registration.
33
  return false;
1130.1.2 by Monty Taylor
Re-org'd the replication stuff into slots.
34
}
35
1143.2.10 by Jay Pipes
Phase 2 new replication work:
36
void plugin::TransactionReplicator::removePlugin(plugin::TransactionReplicator *replicator)
1130.1.2 by Monty Taylor
Re-org'd the replication stuff into slots.
37
{
38
  ReplicationServices &replication_services= ReplicationServices::singleton();
39
  replication_services.detachReplicator(replicator);
40
}
41
1130.3.33 by Monty Taylor
Merged latest from plugin-base-class.
42
} /* namespace drizzled */