Browse Source

[1207] add shared_ptr DataSourceClientContainerPtr

Jelte Jansen 13 years ago
parent
commit
9a1f442d50
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/lib/datasrc/factory.h

+ 9 - 2
src/lib/datasrc/factory.h

@@ -15,14 +15,15 @@
 #ifndef __DATA_SOURCE_FACTORY_H
 #define __DATA_SOURCE_FACTORY_H 1
 
-#include <boost/noncopyable.hpp>
-
 #include <datasrc/data_source.h>
 #include <datasrc/client.h>
 #include <exceptions/exceptions.h>
 
 #include <cc/data.h>
 
+#include <boost/noncopyable.hpp>
+#include <boost/shared_ptr.hpp>
+
 namespace isc {
 namespace datasrc {
 
@@ -171,6 +172,12 @@ private:
     LibraryContainer ds_lib_;
 };
 
+///
+/// Shared pointer type for datasource client containers
+///
+typedef boost::shared_ptr<DataSourceClientContainer>
+    DataSourceClientContainerPtr;
+
 } // end namespace datasrc
 } // end namespace isc
 #endif  // DATA_SOURCE_FACTORY_H