Mailinglist Archive: zypp-commit (325 mails)

< Previous Next >
[zypp-commit] r7153 - /trunk/libzypp-bindings/swig/ByteCount.i
  • From: haass@xxxxxxxxxxxxxxxx
  • Date: Fri, 07 Sep 2007 14:45:12 -0000
  • Message-id: <20070907144512.2918C2B032@xxxxxxxxxxxxxxxx>
Author: haass
Date: Fri Sep  7 16:45:11 2007
New Revision: 7153

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7153&view=rev
Log:
added perl-typemap for ByteCount

Modified:
    trunk/libzypp-bindings/swig/ByteCount.i

Modified: trunk/libzypp-bindings/swig/ByteCount.i
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp-bindings/swig/ByteCount.i?rev=7153&r1=7152&r2=7153&view=diff
==============================================================================
--- trunk/libzypp-bindings/swig/ByteCount.i (original)
+++ trunk/libzypp-bindings/swig/ByteCount.i Fri Sep  7 16:45:11 2007
@@ -13,3 +13,12 @@
 
 #endif
 
+#ifdef SWIGPERL5
+
+%typemap(out) ByteCount {
+   $result = sv_newmortal();
+   sv_setiv($result, (IV) (ByteCount::SizeType) $1 );
+   argvi++;
+}
+
+#endif

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages