Send connman mailing list submissions to connman@lists.01.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.01.org/mailman/listinfo/connman or, via email, send a message with subject or body 'help' to connman-requ...@lists.01.org
You can reach the person managing the list at connman-ow...@lists.01.org When replying, please edit your Subject line so it is more specific than "Re: Contents of connman digest..." Today's Topics: 1. [PATCH] service: signal when services are moved (Beno?t Monin) ---------------------------------------------------------------------- Message: 1 Date: Sun, 14 Oct 2018 18:33:08 +0200 From: Beno?t Monin <benoit.mo...@gmx.fr> To: connman@lists.01.org Subject: [PATCH] service: signal when services are moved Message-ID: <8a58fced6280ec92585af1d87d3247e2e2d7b205.1539534788.git.benoit.mo...@gmx.fr> When calling MoveBefore or MoveAfter on a service, no signal is emitted by connman. This makes it impossible for a dbus client to maintain an ordered list of services in sync with connman. This patch schedules the emission of the signal ServicesChanged from the function move_service, so the new list will get published over dbus. --- src/service.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/service.c b/src/service.c index eea82354..7dc32278 100644 --- a/src/service.c +++ b/src/service.c @@ -143,6 +143,7 @@ static struct connman_ipconfig *create_ip4config(struct connman_service *service static struct connman_ipconfig *create_ip6config(struct connman_service *service, int index); static void dns_changed(struct connman_service *service); +static void service_schedule_changed(void); struct find_data { const char *path; @@ -4598,6 +4599,8 @@ static DBusMessage *move_service(DBusConnection *conn, __connman_connection_update_gateway(); + service_schedule_changed(); + return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); } ------------------------------ Subject: Digest Footer _______________________________________________ connman mailing list connman@lists.01.org https://lists.01.org/mailman/listinfo/connman ------------------------------ End of connman Digest, Vol 36, Issue 15 ***************************************