projects
/
external
/
libzypp-bindings.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Tizen 2.1 base
[external/libzypp-bindings.git]
/
swig
/
ByteCount.i
1
2
3
#ifdef SWIGRUBY
4
5
namespace zypp
6
{
7
// how to do that?
8
// %rename "ByteCount::operator SizeType()" to_i;
9
}
10
11
#endif
12
13
14
// TODO: tell make about dependencies
15
%include <zypp/ByteCount.h>
16
17
18
#ifdef SWIGRUBY
19
20
namespace zypp
21
{
22
%extend ByteCount
23
{
24
long long int to_i()
25
{
26
ByteCount::SizeType tmp = *self;
27
return tmp;
28
}
29
}
30
}
31
32
#endif
33
34
#ifdef SWIGPYTHON
35
36
namespace zypp
37
{
38
%extend ByteCount
39
{
40
long long int __int__()
41
{
42
ByteCount::SizeType tmp = *self;
43
return tmp;
44
}
45
}
46
}
47
48
#endif
49