From a4975fb8bd19ef41e62d47e809bb6175bad48279 Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Tue, 19 Feb 2013 15:16:52 +0200 Subject: [PATCH] client: Return number of proxies added --- client/services.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/services.c b/client/services.c index 1dddbad..5f252ce 100644 --- a/client/services.c +++ b/client/services.c @@ -475,14 +475,14 @@ int set_proxy_manual(DBusConnection *connection, DBusMessage *message, dbus_message_iter_close_container(&dict, &entry); dbus_message_iter_open_container(&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry); - append_property_array(&entry, "Servers", servers, num_servers); + append_property_array(&entry, "Servers", servers, num_servers -1); dbus_message_iter_close_container(&dict, &entry); if (num_excludes != 0) { dbus_message_iter_open_container(&dict, DBUS_TYPE_DICT_ENTRY, NULL, &entry); append_property_array(&entry, "Excludes", excludes, - num_excludes); + num_excludes -1); dbus_message_iter_close_container(&dict, &entry); } @@ -494,7 +494,7 @@ int set_proxy_manual(DBusConnection *connection, DBusMessage *message, g_free(path); - return 0; + return num_servers + num_excludes; } int set_service_property(DBusConnection *connection, DBusMessage *message, -- 2.7.4