Commit c17721b3 authored by Dan Williams's avatar Dan Williams

libnm-glib: allow manual processing of properties changed events

Mostly for handling the GetAll response.
parent ccfc034a
......@@ -37,9 +37,11 @@ typedef struct {
} NMPropertiesChangedInfo;
void _nm_object_handle_properties_changed (NMObject *object,
DBusGProxy *proxy,
const NMPropertiesChangedInfo *info);
void _nm_object_handle_properties_changed (NMObject *object,
DBusGProxy *proxy,
const NMPropertiesChangedInfo *info);
void _nm_object_process_properties_changed (NMObject *self, GHashTable *properties);
gboolean _nm_object_demarshal_generic (NMObject *object, GParamSpec *pspec, GValue *value, gpointer field);
......
......@@ -369,12 +369,18 @@ out:
g_free (prop_name);
}
void
_nm_object_process_properties_changed (NMObject *self, GHashTable *properties)
{
g_hash_table_foreach (properties, handle_property_changed, self);
}
static void
properties_changed_proxy (DBusGProxy *proxy,
GHashTable *properties,
gpointer user_data)
{
g_hash_table_foreach (properties, handle_property_changed, user_data);
_nm_object_process_properties_changed (NM_OBJECT (user_data), properties);
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment