eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 46a188eb39355bbb48e1958d04e291789f2262d6
parent dbe36df5aec8c812b7984607de81ae1998e34be5
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Tue, 24 Jul 2018 16:17:17 -0700

client: rename property setters

As the local objects are updated from DBus, the new name is more
appropriate for the purpose.

Diffstat:
Mclient/dbus-proxy.c | 10+++++-----
Mclient/dbus-proxy.h | 2+-
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c @@ -97,7 +97,7 @@ static const void *proxy_interface_property_tostr( return NULL; } -static void proxy_interface_property_set(struct proxy_interface *proxy, +static void proxy_interface_property_update(struct proxy_interface *proxy, const char *name, struct l_dbus_message_iter *variant) { @@ -109,10 +109,10 @@ static void proxy_interface_property_set(struct proxy_interface *proxy, if (strcmp(property_table[i].name, name)) continue; - if (!property_table[i].set) + if (!property_table[i].update) return; - property_table[i].set(proxy->data, variant); + property_table[i].update(proxy->data, variant); return; } @@ -129,13 +129,13 @@ static void interface_update_properties(struct proxy_interface *proxy, struct l_dbus_message_iter variant; while (l_dbus_message_iter_next_entry(changed, &name, &variant)) - proxy_interface_property_set(proxy, name, &variant); + proxy_interface_property_update(proxy, name, &variant); if (!invalidated) return; while (l_dbus_message_iter_next_entry(invalidated, &name)) - proxy_interface_property_set(proxy, name, NULL); + proxy_interface_property_update(proxy, name, NULL); } char *proxy_property_str_completion(const struct proxy_interface_type *type, diff --git a/client/dbus-proxy.h b/client/dbus-proxy.h @@ -35,7 +35,7 @@ typedef bool (*proxy_property_match_func_t) (const void *a, const void *b); struct proxy_interface_property { const char *name; const char *type; - void (*set)(void *data, struct l_dbus_message_iter *variant); + void (*update)(void *data, struct l_dbus_message_iter *variant); const char *(*tostr)(const void *data); const bool is_read_write; };