Set voice_call.watch in correct way
Hi Forrest,
Quoted 10 lines · Forrest Zhao
It was set wrongly to
device_watch.--- audio/telephony-ofono.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)audio/telephony-ofono.c +0
-0
audio/telephony-ofono.c static gboolean handle_vcmanager_property_changed(DBusConnection *conn, · line 856
Quoted 8 lines
audio/telephony-ofono.c +1
-1@@ -850,7 +850,7 @@ static gboolean handle_vcmanager_property_changed(DBusConnection *conn, vc_new = g_new0(struct voice_call, 1); vc_new->obj_path =g_strdup (vc_obj_path); calls =g_slist_append (calls, vc_new); - device_watch = g_dbus_add_signal_watch(connection, + vc_new->watch = g_dbus_add_signal_watch(connection, NULL, vc_obj_path, OFONO_VC_INTERFACE, "PropertyChanged",
Pushed upstream. Thanks.
Johan
PATCH 1/1 Set voice_call.watch in correct way
It was set wrongly to device_watch.
--- audio/telephony-ofono.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
audio/telephony-ofono.c +1 -1
@@ -850,7 +850,7 @@ static gboolean handle_vcmanager_property_changed(DBusConnection *conn, vc_new = g_new0(struct voice_call, 1); vc_new->obj_path =g_strdup (vc_obj_path); calls =g_slist_append (calls, vc_new); - device_watch = g_dbus_add_signal_watch(connection, + vc_new->watch = g_dbus_add_signal_watch(connection, NULL, vc_obj_path, OFONO_VC_INTERFACE, "PropertyChanged",
Signature · 1 line
1.6.1.3