mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-18 03:40:37 +01:00
libnm-utils: let nml_dbus_property_ao_clear() return changed_prop
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
This commit is contained in:
parent
d36d1f83c2
commit
05c062fc80
2 changed files with 6 additions and 3 deletions
|
|
@ -2266,9 +2266,11 @@ nml_dbus_property_ao_notify(NMClient * self,
|
|||
return NML_DBUS_NOTIFY_UPDATE_PROP_FLAGS_NONE;
|
||||
}
|
||||
|
||||
void
|
||||
gboolean
|
||||
nml_dbus_property_ao_clear(NMLDBusPropertyAO *pr_ao, NMClient *self)
|
||||
{
|
||||
gboolean changed_prop = FALSE;
|
||||
|
||||
_ASSERT_pr_ao(pr_ao);
|
||||
|
||||
if (!pr_ao->owner_dbobj) {
|
||||
|
|
@ -2281,7 +2283,6 @@ nml_dbus_property_ao_clear(NMLDBusPropertyAO *pr_ao, NMClient *self)
|
|||
nm_assert(!pr_ao->is_changed);
|
||||
} else {
|
||||
PropertyAOData *pr_ao_data;
|
||||
gboolean changed_prop = FALSE;
|
||||
|
||||
nm_assert(NM_IS_CLIENT(self));
|
||||
nm_assert(pr_ao->data_lst_head.next);
|
||||
|
|
@ -2329,6 +2330,8 @@ nml_dbus_property_ao_clear(NMLDBusPropertyAO *pr_ao, NMClient *self)
|
|||
}
|
||||
|
||||
nm_clear_pointer(&pr_ao->arr, g_ptr_array_unref);
|
||||
|
||||
return changed_prop;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -303,7 +303,7 @@ const GPtrArray *nml_dbus_property_ao_get_objs_as_ptrarray(NMLDBusPropertyAO *pr
|
|||
|
||||
gboolean nml_dbus_property_ao_is_ready(const NMLDBusPropertyAO *pr_ao);
|
||||
|
||||
void nml_dbus_property_ao_clear(NMLDBusPropertyAO *pr_ao, NMClient *client);
|
||||
gboolean nml_dbus_property_ao_clear(NMLDBusPropertyAO *pr_ao, NMClient *client);
|
||||
|
||||
void nml_dbus_property_ao_clear_many(NMLDBusPropertyAO *pr_ao, guint len, NMClient *self);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue