]> icculus.org git repositories - duncan/yast2-ruby-bindings.git/blob - src/ruby/Y2RubyTypeConv.h
- Lot of fixes and support for the UI!!!
[duncan/yast2-ruby-bindings.git] / src / ruby / Y2RubyTypeConv.h
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                                                                      |
10 | ruby language support                              (C) Novell Inc.   |
11 \----------------------------------------------------------------------/
12
13 Author: Duncan Mac-Vicar <dmacvicar@suse.de>
14
15 This program is free software; you can redistribute it and/or
16 modify it under the terms of the GNU General Public License
17 as published by the Free Software Foundation; either version
18 2 of the License, or (at your option) any later version.
19
20 */
21
22 #ifndef Y2RUBYTYPECONV_H
23 #define Y2RUBYTYPECONV_H
24
25 #include <ycp/YCPValue.h>
26 #include "ruby.h"
27
28 /**
29  * Converts a YCPValue into a Ruby Value
30  * Supports neested lists and maps using recursion.
31  */
32 extern "C" VALUE
33 ycpvalue_2_rbvalue( YCPValue ycpval );
34
35 /**
36  * Converts a Ruby Value into a YCPValue
37  * Supports neested lists and maps using recursion.
38  */
39 YCPValue
40 rbvalue_2_ycpvalue( VALUE value );
41
42
43 /**
44  * excplicitly create a YCPPath from a Ruby value
45  */
46 YCPValue
47 rbvalue_2_ycppath( VALUE value );
48
49 #endif
50