summaryrefslogtreecommitdiff
path: root/swig/zypp.i
diff options
context:
space:
mode:
authorArvin Schnell <aschnell@suse.de>2007-07-23 10:46:42 +0000
committerArvin Schnell <aschnell@suse.de>2007-07-23 10:46:42 +0000
commitdc8c0606a3cc759e8e0034af775e96c7f5c96ab0 (patch)
tree8fbd64d7de0fa50078980fc61cf87eaf9a8b9957 /swig/zypp.i
parentd690eb0f5ac56b3dd56a56bd53a656596cdf3cf3 (diff)
downloadlibzypp-bindings-dc8c0606a3cc759e8e0034af775e96c7f5c96ab0.tar.gz
libzypp-bindings-dc8c0606a3cc759e8e0034af775e96c7f5c96ab0.tar.bz2
libzypp-bindings-dc8c0606a3cc759e8e0034af775e96c7f5c96ab0.zip
- moved ruby set and list interface files to ruby subdir
Diffstat (limited to 'swig/zypp.i')
-rw-r--r--swig/zypp.i20
1 files changed, 16 insertions, 4 deletions
diff --git a/swig/zypp.i b/swig/zypp.i
index b5669ea..5d5baea 100644
--- a/swig/zypp.i
+++ b/swig/zypp.i
@@ -1,4 +1,9 @@
+#ifdef SWIGRUBY
%module rzypp
+#else
+%module zypp
+#endif
+
%{
/* Includes the header in the wrapper code */
@@ -59,8 +64,13 @@ class intrusive_ptr {
%include std_string.i
%include "stl.i"
-%include "std_list.i"
-%include "std_set.i"
+#ifdef SWIGRUBY
+%include "ruby/std_list.i"
+%include "ruby/std_set.i"
+#else
+%include std_list.i
+%include std_set.i
+#endif
%include "NeedAType.i"
%include "Arch.i"
@@ -98,14 +108,16 @@ class intrusive_ptr {
#ifdef SWIGRUBY
-%include "ruby.i"
-#endif
+%include "ruby.i"
/* define iterators using swig macros */
iter2( ResStore, ResObject* )
auto_iterator( std::list<RepoInfo>, RepoInfo )
+#endif
+
+
class ZYpp
{
public: