00001 #ifndef TYPELIB_RUBY_EXT_HH00002 #define TYPELIB_RUBY_EXT_HH00003
00004 #include <typelib/value.hh>00005
00006 // Public interface to the Typelib extension for Ruby00007
00008 /* Returns the Typelib::Value object wrapped by +value+ */00009 Typelib::Valuetypelib_get(VALUE value);
00010 /* Converts a Typelib::Value to Ruby's VALUE. +registry+ is the wrapper of the00011 * Registry on which +v+ is defined */00012 VALUE typelib_to_ruby(Typelib::Value v, VALUE registry, VALUE parent);
00013 /* Initializes the memory held by +value+ by the Ruby value +new_value+ */00014 VALUE typelib_from_ruby(Typelib::Value value, VALUE new_value);
00015
00016 #endif00017