diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-12-19 15:12:10 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-19 15:12:10 -0800 |
commit | 64dee569887c5c4e4a62a109f4ecf3c9093707bc (patch) | |
tree | 2c86201c2dd5e599af2b4de0d07c94c746ec2a43 /src/network.c | |
parent | 328d81c6cea8523694ca008e9f08008326f46439 (diff) | |
download | connman-64dee569887c5c4e4a62a109f4ecf3c9093707bc.tar.gz connman-64dee569887c5c4e4a62a109f4ecf3c9093707bc.tar.bz2 connman-64dee569887c5c4e4a62a109f4ecf3c9093707bc.zip |
Make use of property changed helper for arrays
Diffstat (limited to 'src/network.c')
-rw-r--r-- | src/network.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/network.c b/src/network.c index 81be9be7..6c1a359b 100644 --- a/src/network.c +++ b/src/network.c @@ -190,19 +190,10 @@ static void append_networks(DBusMessageIter *iter, void *user_data) static void emit_networks_signal(struct connman_device *device) { const char *path = connman_device_get_path(device); - DBusMessage *signal; - DBusMessageIter iter; - signal = dbus_message_new_signal(path, - CONNMAN_DEVICE_INTERFACE, "PropertyChanged"); - if (signal == NULL) - return; - - dbus_message_iter_init_append(signal, &iter); - connman_dbus_property_append_variable_array(&iter, "Networks", + connman_dbus_property_changed_array(path, + CONNMAN_DEVICE_INTERFACE, "Networks", DBUS_TYPE_OBJECT_PATH, append_networks, device); - - g_dbus_send_message(connection, signal); } static int register_interface(struct connman_element *element) |