summaryrefslogtreecommitdiff
path: root/swig/ByteCount.i
blob: 03f17c612b1e2b4378cd06301b4f4f187cfd13df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49


#ifdef SWIGRUBY

namespace zypp
{
    // how to do that?
    // %rename "ByteCount::operator SizeType()" to_i;
}

#endif


// TODO: tell make about dependencies
%include <zypp/ByteCount.h>


#ifdef SWIGRUBY

namespace zypp
{
    %extend ByteCount
    {
	long long int to_i()
	{
	    ByteCount::SizeType tmp = *self;
	    return tmp;
	}
    }
}

#endif

#ifdef SWIGPYTHON

namespace zypp
{
    %extend ByteCount
    {
	long long int __int__()
	{
	    ByteCount::SizeType tmp = *self;
	    return tmp;
	}
    }
}

#endif