Re: Transformation functions from G_TYPE_STRING to G_TYPE_any
- From: Andy Wingo <wingo pobox com>
- To: gtk-devel-list gnome org
- Subject: Re: Transformation functions from G_TYPE_STRING to G_TYPE_any
- Date: Mon, 22 May 2006 12:20:19 +0200
Hi,
On Fri, 2006-05-19 at 11:34 -0500, Daniel Espinosa wrote:
> I'm working on add functions to GLib to transform a STRING to GLib's
> types
IIRC the reason they are not there is because the transform API isn't
suited to parsers (GValueTransform does not return anything -- the
system assumes that if a transformer was found, that a transform could
take place). You probably want a different API (serialize/deserialize or
something -- see gstreamer's gstvalue [1] for one such implementation).
[1] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstValue.html
Regards,
--
Andy Wingo
http://wingolog.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]