Skip to contentSkip to conversation

Set voice_call.watch in correct way

PATCH In review Forrest Zhao 2 participants 2 messages Mar 25, 2010 Bluetooth drivers

lore
Share & tools
lore
#1 lore raw
In reply to Forrest Zhao

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
index c19e6ee..45c3905 100644

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

#0 lore raw

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
index c19e6ee..45c3905 100644
@@ -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