Example program showing usage of complex GVariant types with GDBus RPC
Submitted by jitendra
Link to original bug (#759524)
Description
Created attachment 317471 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:-
- Array of tuples Ex. a(iis)
- Array of dictionary entries Ex. a{is}
- 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.
Attachment 317471, "Patch for example program showing usage of complex GVariant types with GDBus RPC.":
example_program_to_show_usage_of_complex_gvariant_data_in_gdbus.patch
Version: 2.47.x