diff options
author | Klaus Kämpf <kkaempf@suse.de> | 2010-11-09 11:16:12 +0100 |
---|---|---|
committer | Klaus Kämpf <kkaempf@suse.de> | 2010-11-09 11:16:12 +0100 |
commit | 9c62792a3b15d10356825569e8815fa98eed20ef (patch) | |
tree | bfeb9e39c338d5f2c2e470834773e0894c785bb4 /swig | |
parent | 58d073c302f82664dd99d8eabc5a31ce053884d2 (diff) | |
parent | 6b3959bcd25daa740bb3c7d050db533b5932021e (diff) | |
download | libzypp-bindings-9c62792a3b15d10356825569e8815fa98eed20ef.tar.gz libzypp-bindings-9c62792a3b15d10356825569e8815fa98eed20ef.tar.bz2 libzypp-bindings-9c62792a3b15d10356825569e8815fa98eed20ef.zip |
fix merge conflict in CMakeLists.txt
Diffstat (limited to 'swig')
-rw-r--r-- | swig/Arch.i | 42 | ||||
-rw-r--r-- | swig/zypp.i | 2 |
2 files changed, 40 insertions, 4 deletions
diff --git a/swig/Arch.i b/swig/Arch.i index 0651b17..1f33234 100644 --- a/swig/Arch.i +++ b/swig/Arch.i @@ -8,16 +8,18 @@ * The system has an architecture (i.e. x86_64) and so does every * Resolvable. * - * Arch#compatible_with is used to detect compatible architectures. + * +Arch#compatible_with?+ is used to detect compatible architectures. * 'noarch' is compatible with any system architecture. * * There is no limit to architecture specifiers, any string can be * passed to the Arch constructor. * However, there is a set of architectures built into libzypp. - * Arch#builtin? returns true for an architecture from the builtin set. + * +Arch#builtin?+ returns true for an architecture from the builtin set. * - * == Usage + * === Usage * arch = Arch.new("i686") + * # equivalent: + * # arch = Arch.i686 * * arch.builtin? -> true * @@ -38,17 +40,49 @@ class Arch { delete $self; } - # all the standard architectures + /* + * builtin: noarch + */ static Arch noarch() { return zypp::Arch_noarch; } + /* + * builtin: i386 + */ static Arch i386() { return zypp::Arch_i386; } + /* + * builtin: i486 + */ static Arch i486() { return zypp::Arch_i486; } + /* + * builtin: i586 + */ static Arch i586() { return zypp::Arch_i586; } + /* + * builtin: i686 + */ static Arch i686() { return zypp::Arch_i686; } + /* + * builtin: i86_64 (AMD 64) + */ static Arch x86_64() { return zypp::Arch_x86_64; } + /* + * builtin: ia64 (Itanium) + */ static Arch ia64() { return zypp::Arch_ia64; } + /* + * builtin: ppc (Power PC 32 bit) + */ static Arch ppc() { return zypp::Arch_ppc; } + /* + * builtin: ppc64 (Power PC 64 bit) + */ static Arch ppc64() { return zypp::Arch_ppc64; } + /* + * builtin: s390 (zSeries 32 bit) + */ static Arch s390() { return zypp::Arch_s390; } + /* + * builtin: s390s (zSeries 64 bit) + */ static Arch s390x() { return zypp::Arch_s390x; } #if defined(SWIGRUBY) diff --git a/swig/zypp.i b/swig/zypp.i index bafb261..b09dfd9 100644 --- a/swig/zypp.i +++ b/swig/zypp.i @@ -188,6 +188,8 @@ namespace zypp { /* These include files are already cleaned up from C++ cruft */ %include "Arch.i" +/* These include files are pending to be cleaned up from C++ cruft */ + #ifdef BOOST_SMARTPTR_INCLUDE_DIR %import <boost/smart_ptr/scoped_ptr.hpp> %import <boost/smart_ptr/shared_ptr.hpp> |