All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Expose voice call direction synchronously
@ 2011-01-10 15:26 =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
  2011-01-10 15:26 ` [PATCH 2/2] Document voicecall direction =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
  2011-01-11 12:47 ` [PATCH 1/2] Expose voice call direction synchronously Kai.Vehmanen
  0 siblings, 2 replies; 5+ messages in thread
From: =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont @ 2011-01-10 15:26 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]

Currently, the call direction can only be inferred from the signals.
This adds a property to keep it visible also from GetCalls().
---
 src/voicecall.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/voicecall.c b/src/voicecall.c
index 97fc36b..2baf2d6 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -352,7 +352,7 @@ static void append_voicecall_properties(struct voicecall *v,
 	const char *callerid;
 	const char *timestr;
 	const char *name;
-	ofono_bool_t mpty;
+	ofono_bool_t mpty, originated;
 	dbus_bool_t emergency_call;
 
 	status = call_status_to_string(call->status);
@@ -382,6 +382,10 @@ static void append_voicecall_properties(struct voicecall *v,
 					&timestr);
 	}
 
+	originated = call->direction == CALL_DIRECTION_MOBILE_ORIGINATED;
+	ofono_dbus_dict_append(dict, "Originated", DBUS_TYPE_BOOLEAN,
+				&originated);
+
 	if (g_slist_find_custom(v->vc->multiparty_list,
 				GINT_TO_POINTER(call->id),
 				call_compare_by_id))
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-12  8:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-10 15:26 [PATCH 1/2] Expose voice call direction synchronously =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-10 15:26 ` [PATCH 2/2] Document voicecall direction =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-11 12:47 ` [PATCH 1/2] Expose voice call direction synchronously Kai.Vehmanen
2011-01-12  5:14   ` Denis Kenzior
2011-01-12  8:24     ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.