summaryrefslogtreecommitdiff
path: root/swig/Package.i
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2013-05-02 07:50:44 -0400
committerGui Chen <gui.chen@intel.com>2013-05-02 07:58:46 -0400
commit914e5481ce686d2111bc211114e759755581c9ee (patch)
treed9f1663af5409d452a793d42c3f73a3a69e42ee2 /swig/Package.i
parentfa4f0252f27fab99db4ad665a549e8a5ba04a63b (diff)
downloadlibzypp-bindings-914e5481ce686d2111bc211114e759755581c9ee.tar.gz
libzypp-bindings-914e5481ce686d2111bc211114e759755581c9ee.tar.bz2
libzypp-bindings-914e5481ce686d2111bc211114e759755581c9ee.zip
fix const pointer lost its namespace
try to build python-zypp with swig 2.0.7 or newer, the *_constPtr always lost its namespace Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'swig/Package.i')
-rw-r--r--swig/Package.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/swig/Package.i b/swig/Package.i
index 734c59d..1335ff0 100644
--- a/swig/Package.i
+++ b/swig/Package.i
@@ -2,3 +2,6 @@
%include <zypp/Package.h>
+typedef ::zypp::intrusive_ptr<const Package> Package_constPtr;
+%template(Package_constPtr) ::zypp::intrusive_ptr<const Package>;
+