Commit: a3ff1a8e43688311037eb1c46981f3a7aecfa24e
Parent: e25fd4d869667fac09db80fe40daf1f46bb9d673
Author: Jakub Pawlowski <jpawlowski@google.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-09-19 14:28:12
Tree: 482719fe90dd73d7f2518d6c5741d4c1933dd00a

gdbus: add method for immediate property update g_dbus_emit_property_changed doesn't send dbus signal immediately. Instead it stores changed properties, and schedule signal to be send at g_iddle_add. Additionally, if this method is called few times for some property, only last value will be sent in property changed signal. If remote device sends lots of notifications, they're all scheduled to be notified using this method. This might result in some notifications being lost. This patch adds new method, that can immediately send property changed signal, instead of sheduling it for nearest iddle moment.

Diffstat

M gdbus/gdbus.h | 10 ++++++++++
M gdbus/object.c | 16 +++++++++++++- - -

2 files changed, 23 insertions(+), 3 deletions(-)

View Full Diff | Patch