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