Standard interface for serializable types

2015-04-13 Thread Alex
Hi, my name is Alex and I have been working on a toy project which requires the serialization of arbitrary GObject's. For that, I found about gvs [1] and json-glib [2], but a binary representation would be better. That's why I wonder if there is a standard way of doing it, something like a GSer

RE: gvariant parsing for a complex format

2015-04-13 Thread Norman, Anders
Something like this: #include #include #include #include #include #include int ParseVariant (GVariant *value) { GVariant * list; gchar ch1,ch2,ch3; gchar *str1,*str2,*str3,*str4,*str5,*str6,*str7; gboolean bool1; gint x; GVariantIter iter; g_print ("Inside Parse\n