From a2c01a4f2dc35aab8b905ad7efb5c62305e6d48b Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 20 May 2009 15:17:21 +0000 Subject: Fixed a regression affecting plugin-exchanges. Plugin exchanges (i.e. the XML exchange) do not get the broker pointer and therefore can not register themselves with the management agent. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@776729 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/xml/XmlExchangePlugin.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/xml/XmlExchangePlugin.cpp') diff --git a/cpp/src/qpid/xml/XmlExchangePlugin.cpp b/cpp/src/qpid/xml/XmlExchangePlugin.cpp index d0ec9cb959..4bd3ed741e 100644 --- a/cpp/src/qpid/xml/XmlExchangePlugin.cpp +++ b/cpp/src/qpid/xml/XmlExchangePlugin.cpp @@ -31,13 +31,15 @@ namespace qpid { namespace broker { // ACL uses the acl namespace here - should I? using namespace std; +class Broker; Exchange::shared_ptr create(const std::string& name, bool durable, const framing::FieldTable& args, - management::Manageable* parent) + management::Manageable* parent, + Broker* broker) { - Exchange::shared_ptr e(new XmlExchange(name, durable, args, parent)); - return e; + Exchange::shared_ptr e(new XmlExchange(name, durable, args, parent, broker)); + return e; } -- cgit v1.2.1