]> icculus.org git repositories - duncan/yast2-ruby-bindings.git/blob - src/swig/yast.i
Allows for a different mporting
[duncan/yast2-ruby-bindings.git] / src / swig / yast.i
1 %module ycp
2 %include std_string.i
3 %include stl.i
4  %{
5 /* Includes the header in the wrapper code */
6 #define y2log_component "Y2Ruby"
7 #include <y2util/y2log.h>
8
9 #include <ycp/YCode.h>
10 #include <ycp/YCPCode.h>
11 #include <ycp/YCPElement.h>
12 #include <ycp/YCPExternal.h>
13 #include <ycp/YCPValue.h>
14 #include <ycp/YCPBoolean.h>
15 #include <ycp/YCPList.h>
16 #include <ycp/YCPMap.h>
17 #include <ycp/YCPString.h>
18 #include <ycp/YCPInteger.h>
19 #include <ycp/YCPFloat.h>
20 #include <ycp/YCPPath.h>
21 #include <ycp/YCPTerm.h>
22 #include <ycp/YCPVoid.h>
23 #include <ycp/Import.h>
24 #include <ycp/YBlock.h>
25 #include <ycp/YCPByteblock.h>
26 #include <ycp/Parser.h>
27 #include <ycp/pathsearch.h>
28
29
30 //static swig_type_info _swigt__p_YCPValue;
31
32 %}
33
34 #ifdef SWIGRUBY
35 //%include "ruby.i"
36 #endif
37
38 %rename("+") "operator+";
39 %rename("<<") "operator<<";
40 %rename("!=") "operator!=";
41 %rename("!") "operator!";
42 %rename("==") "operator==";
43
44 %include <ycp/YCode.h>
45 %include <ycp/YCPCode.h>
46 //%include <ycp/YCPElement.h>
47 //%include <ycp/YCPExternal.h>
48 %include <ycp/YCPValue.h>
49
50 %nodefaultctor YCPBoolean;
51 %include <ycp/YCPBoolean.h>
52
53 //%include <ycp/YCPList.h>
54 //%include <ycp/YCPMap.h>
55
56 %nodefaultctor YCPString;
57 %include <ycp/YCPString.h>
58
59 %nodefaultctor YCPInteger;
60 %include <ycp/YCPInteger.h>
61
62 %nodefaultctor YCPFloat;
63 %include <ycp/YCPFloat.h>
64
65 //%include <ycp/Import.h>
66
67 %nodefaultctor YCPExternal;
68 %include <ycp/YCPExternal.h>
69
70 %nodefaultctor YCPSymbol;
71 %include <ycp/YCPSymbol.h>
72
73 %nodefaultctor YCPTerm;
74 %include <ycp/YCPTerm.h>
75
76 %nodefaultctor YCPByteblock;
77 %include <ycp/YCPByteblock.h>
78
79 %include <ycp/YBlock.h>
80 %include <ycp/Parser.h>
81 //%include <ycp/pathsearch.h>
82