summaryrefslogtreecommitdiff
path: root/swig/zypp.i
diff options
context:
space:
mode:
authorKlaus Kämpf <kkaempf@suse.de>2010-11-07 21:52:27 +0100
committerKlaus Kämpf <kkaempf@suse.de>2010-11-07 21:52:27 +0100
commit3a59dae44d4dd8407239e4e04f44a36ee9bdaadc (patch)
tree78e05032f6a2c9bc62747431cf5a81f1b4ca5e5b /swig/zypp.i
parent72cb188f02fb17eace5fab84dbfcd19935d8d3d0 (diff)
downloadlibzypp-bindings-3a59dae44d4dd8407239e4e04f44a36ee9bdaadc.tar.gz
libzypp-bindings-3a59dae44d4dd8407239e4e04f44a36ee9bdaadc.tar.bz2
libzypp-bindings-3a59dae44d4dd8407239e4e04f44a36ee9bdaadc.zip
Refactor Arch - don't expose full C++ API
Completely hide the full C++ API for the 'Arch' class from SWIG. Instead only expose some functions in a way thats useful for the target language. Add Ruby and Python tests.
Diffstat (limited to 'swig/zypp.i')
-rw-r--r--swig/zypp.i7
1 files changed, 5 insertions, 2 deletions
diff --git a/swig/zypp.i b/swig/zypp.i
index a9323d3..dc0cd2e 100644
--- a/swig/zypp.i
+++ b/swig/zypp.i
@@ -169,7 +169,6 @@ namespace zypp {
%include "std_string.i"
%include "stl.i"
-
#ifdef SWIGRUBY
%include "ruby/std_list.i"
%include "ruby/std_set.i"
@@ -187,6 +186,9 @@ namespace zypp {
%include "perl5/perl.i"
#endif
+/* These include files are already cleaned up from C++ cruft */
+%include "Arch.i"
+
#ifdef BOOST_SMARTPTR_INCLUDE_DIR
%import <boost/smart_ptr/scoped_ptr.hpp>
%import <boost/smart_ptr/shared_ptr.hpp>
@@ -201,12 +203,12 @@ namespace zypp {
%import <zypp/base/PtrTypes.h>
%import <zypp/base/Flags.h>
+#if 1 /* set 0 for testing, these files still carry the full C++ cruft */
%include "IdStringType.i"
%include "Pathname.i"
%include "ByteCount.i"
%include "Url.i"
%include "NeedAType.i"
-%include "Arch.i"
%include "Edition.i"
%include "Kind.i"
%include "CheckSum.i"
@@ -242,6 +244,7 @@ namespace zypp {
%include "Resolver.i"
%include "ZConfig.i"
%include "Callbacks.i"
+#endif
%ignore zypp::ZYpp::setTextLocale;
%ignore zypp::ZYpp::getTextLocale;