1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
10 | ruby language support (C) Novell Inc. |
11 \----------------------------------------------------------------------/
13 Author: Duncan Mac-Vicar <dmacvicar@suse.de>
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.
22 #ifndef Y2RUBYTYPECONV_H
23 #define Y2RUBYTYPECONV_H
25 #include <ycp/YCPValue.h>
29 * Converts a YCPValue into a Ruby Value
30 * Supports neested lists and maps using recursion.
33 ycpvalue_2_rbvalue( YCPValue ycpval );
36 * Converts a Ruby Value into a YCPValue
37 * Supports neested lists and maps using recursion.
40 rbvalue_2_ycpvalue( VALUE value );
44 * excplicitly create a YCPPath from a Ruby value
47 rbvalue_2_ycppath( VALUE value );