GNOME Bugzilla – Bug 759524
Example program showing usage of complex GVariant types with GDBus RPC
Last modified: 2018-05-24 18:25:13 UTC
Created attachment 317471 [details] Patch for example program showing usage of complex GVariant types with GDBus RPC. After studying the GIO and GDBus documentation I found that there is very little documentation and no examples showing usage of complex GVariant types with GDBus RPC. So I have created an example program that demonstrates usages of following complex GVariant types with GDBus RPC:- 1. Array of tuples Ex. a(iis) 2. Array of dictionary entries Ex. a{is} 3. More complex GVariant type Ex. a(oa{sv}) Example program operates in client and server mode. Client creates above types of GVariant data and pass them to server using GDBus sync Method call. Server receives the data in its method handler, extracts the actual data from GVariant and prints them. Please find attached the patch of example program and consider it for adding in gio/tests/. Thanks.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1118.