summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/ExchangeRegistry.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/broker/ExchangeRegistry.h')
-rw-r--r--cpp/src/qpid/broker/ExchangeRegistry.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/ExchangeRegistry.h b/cpp/src/qpid/broker/ExchangeRegistry.h
index 58cbca3d92..787b7896f0 100644
--- a/cpp/src/qpid/broker/ExchangeRegistry.h
+++ b/cpp/src/qpid/broker/ExchangeRegistry.h
@@ -59,6 +59,11 @@ class ExchangeRegistry{
*/
void setParent (management::Manageable* _parent) { parent = _parent; }
+ /** Register an exchange instance.
+ *@return true if registered, false if exchange with same name is already registered.
+ */
+ bool registerExchange(const Exchange::shared_ptr&);
+
void registerType(const std::string& type, FactoryFunction);
/** Call f for each exchange in the registry. */