From: Kouhei S. <ko...@co...> - 2010-10-12 01:18:06
|
Hi, In <AANLkTin7Ueh8E-wRjpRcDyp=8x6...@ma...> "[ruby-gnome2-devel-en] gstpbutilsinstallplugins" on Sun, 10 Oct 2010 19:06:12 +0200, Vincent Carmona <vin...@gm...> wrote: > I see that enum constants are (usually?) defined twice by G_DEF_CLASS > and G_DEF_CONSTANTS. > i.e. : GST_TYPE_MESSAGE_TYPE in rgst-message.c (constantants are > defined under Gst::Message::Type and under Gst::Message) > Should I do the same ? G_DEF_CONSTANTS is for convenience. If enum constants are used many times, we will provide shortcuts by G_DEF_CONSTANTS. Otherwise we don't provide shotcuts. > The gst_install_plugins_async function take a gchar** as the first > argument (NULL-terminated array of strings). > I was thinking of define Gst::InstallPlugins.async(details, > context=nil){block} with details a ruby array. > Is there a common way (macro) to convert a ruby array to > If not should I define a macro ? In rbgst-install-plugins.c ? In > rbgst-install-plugins.h ? In a glib file ? Thera is no macro for it. We should define it rbgutil.c and export it by rbgtuil.h. Thanks, -- kou |