variant parsing.
- From: "Konstantin P." <ria freelander gmail com>
- To: gtk-list gnome org
- Subject: variant parsing.
- Date: Sun, 15 Feb 2015 17:10:51 +0700
Hello. Let' s assume we have GVariant of type (ia{sv}av).
It will be correct to parse it by following:
int integer;
Variant dict; /* dict must be type a{sv} */
Variant array; /* array must be type av */
g_variant_get(variant,"ivv",&integer,&dict,&array);
?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]