work around swig problem creating two different types for intrusive_ptr BASE-SuSE-Code-12_3-Branch upstream/0.5.14
authorMichael Schroeder <mls@suse.de>
Mon, 28 Jan 2013 13:03:11 +0000 (14:03 +0100)
committerMichael Schroeder <mls@suse.de>
Mon, 28 Jan 2013 13:03:11 +0000 (14:03 +0100)
VERSION.cmake
package/libzypp-bindings.changes
swig/KeyRing.i
swig/ResTraits.i
swig/Resolver.i
swig/Target.i
swig/ZYppFactory.i

index 9370097..69057d5 100644 (file)
@@ -1,3 +1,3 @@
 SET(VERSION_MAJOR "0")
 SET(VERSION_MINOR "5")
-SET(VERSION_PATCH "13")
+SET(VERSION_PATCH "14")
index 31e6621..2193625 100644 (file)
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Mon Jan 28 14:02:12 CET 2013 - mls@suse.de
+
+- work around swig problem creating two different types for
+  intrusive_ptr
+- version 0.5.14
+
+-------------------------------------------------------------------
 Tue Jun  5 09:27:07 UTC 2012 - jreidinger@suse.com
 
 - disable segfaulting python test
index dd938fc..cf80a17 100644 (file)
@@ -20,8 +20,8 @@
 }
 namespace zypp
 {
-  typedef intrusive_ptr<KeyRing> KeyRing_Ptr;
-  %template(KeyRing_Ptr) intrusive_ptr<KeyRing>;
+  typedef ::zypp::intrusive_ptr<KeyRing> KeyRing_Ptr;
+  %template(KeyRing_Ptr) ::zypp::intrusive_ptr<KeyRing>;
 }
 
 %template(List_PublicKey) std::list<zypp::PublicKey>;
index 664113d..6658bdb 100644 (file)
@@ -15,10 +15,10 @@ namespace zypp
       typedef zypp::intrusive_ptr<const _Res> constPtrType;
   };
 
-   typedef intrusive_ptr<const ResObject> ResObject_constPtr;
-   typedef intrusive_ptr<ResObject>       ResObject_Ptr;
-   %template(ResObject_constPtr)          intrusive_ptr<const zypp::ResObject>;
-   %template(ResObject_Ptr)               intrusive_ptr<zypp::ResObject>;
+   typedef ::zypp::intrusive_ptr<const ResObject> ResObject_constPtr;
+   typedef ::zypp::intrusive_ptr<ResObject>       ResObject_Ptr;
+   %template(ResObject_constPtr)          ::zypp::intrusive_ptr<const zypp::ResObject>;
+   %template(ResObject_Ptr)               ::zypp::intrusive_ptr<zypp::ResObject>;
 
 }
 
@@ -34,10 +34,10 @@ namespace zypp
 %define %STUFF(X)
 namespace zypp
 {
-  typedef intrusive_ptr<const X> X##_constPtr;
-  typedef intrusive_ptr<X>       X##_Ptr;
-  %template(X##_constPtr)        intrusive_ptr<const X>;
-  %template(X##_Ptr)             intrusive_ptr<X>;
+  typedef ::zypp::intrusive_ptr<const X> X##_constPtr;
+  typedef ::zypp::intrusive_ptr<X>       X##_Ptr;
+  %template(X##_constPtr)        ::zypp::intrusive_ptr<const X>;
+  %template(X##_Ptr)             ::zypp::intrusive_ptr<X>;
 
   bool isKind##X( const zypp::Resolvable::constPtr & p );
   bool isKind##X( const zypp::PoolItem & p );
index 2d1f402..d4245c7 100644 (file)
@@ -9,8 +9,8 @@
 
 namespace zypp
 {
-  typedef intrusive_ptr< Resolver > Resolver_Ptr;
-  %template(Resolver_Ptr) intrusive_ptr<Resolver>;
+  typedef ::zypp::intrusive_ptr< Resolver > Resolver_Ptr;
+  %template(Resolver_Ptr) ::zypp::intrusive_ptr<Resolver>;
 
 #ifndef SWIGRUBY
   /* swig generates wrong code (>> instead of > > for template type)
index b8c2e3c..111740f 100644 (file)
@@ -7,8 +7,8 @@ namespace zypp
 %include <zypp/Target.h>
 namespace zypp
 {
-typedef intrusive_ptr<Target> Target_Ptr;
-%template(Target_Ptr) intrusive_ptr<Target>;
+typedef ::zypp::intrusive_ptr<Target> Target_Ptr;
+%template(Target_Ptr) ::zypp::intrusive_ptr<Target>;
 }
 %{
   namespace zypp
index 1c1d676..3ac0b5a 100644 (file)
@@ -3,7 +3,7 @@
 
 namespace zypp
 {
-typedef intrusive_ptr<ZYpp> ZYpp_Ptr;
-%template(ZYpp_Ptr) intrusive_ptr<ZYpp>;
+typedef ::zypp::intrusive_ptr<ZYpp> ZYpp_Ptr;
+%template(ZYpp_Ptr) ::zypp::intrusive_ptr<ZYpp>;
 }