3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

client: rename property setters

As the local objects are updated from DBus, the new name is more
appropriate for the purpose.
This commit is contained in:
Tim Kourt 2018-07-24 16:17:17 -07:00 committed by Denis Kenzior
parent dbe36df5ae
commit 46a188eb39
2 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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;
};