bluez/gdbus
Vlad Pruteanu a1bde349db gdbus: Add g_dbus_proxy_set_property_dict
This adds a new gdbus function to allow for the setting of a
dictionary-type property (a{sv}). It receives the name of the
property, the name of the first entry to be set from the
dictionary, it's type and value, followed by the second pair of
entry_name, type, value, and so on, marking the end of the
entries with NULL. Additionally, if the type is an array, the
type of the array and it's length must also be proviedd. These
values are passed as a dict entry, to the set method associated
with the property. There, it must be parsed and the appropriate
entry updated.

Example of usage:

g_dbus_proxy_set_property_dict(proxy, "dict_property_name", cb,
user_data, NULL, "entry_1", DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE,
value_1_len, value_1, "entry_2", DBUS_TYPE_BYTE, value_2, NULL)
2024-09-09 12:06:19 -04:00
..
client.c gdbus: Add g_dbus_proxy_set_property_dict 2024-09-09 12:06:19 -04:00
gdbus.h gdbus: Add g_dbus_proxy_set_property_dict 2024-09-09 12:06:19 -04:00
mainloop.c gdbus: Add SPDX License Identifier 2020-09-21 16:19:34 -07:00
object.c gdbus: Add testing flags 2024-04-23 18:27:20 -04:00
polkit.c gdbus: Add SPDX License Identifier 2020-09-21 16:19:34 -07:00
watch.c gdbus: Check sprintf retval 2024-05-16 16:37:41 -04:00