linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] session: only add Target if it exists
@ 2013-05-27 23:07 Gustavo Padovan
  2013-05-27 23:07 ` [PATCH 2/4] obex: extract src and dst address and store it Gustavo Padovan
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Gustavo Padovan @ 2013-05-27 23:07 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: emilio.pozuelo, Gustavo Padovan

From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

---
 obexd/src/manager.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/obexd/src/manager.c b/obexd/src/manager.c
index b67567b..b86565c 100644
--- a/obexd/src/manager.c
+++ b/obexd/src/manager.c
@@ -265,6 +265,14 @@ static DBusMessage *unregister_agent(DBusConnection *conn,
 	return dbus_message_new_method_return(msg);
 }
 
+static gboolean session_target_exists(const GDBusPropertyTable *property,
+								void *data)
+{
+	struct obex_session *os = data;
+
+	return os->service->target ? TRUE : FALSE;
+}
+
 static char *target2str(const uint8_t *t)
 {
 	if (!t)
@@ -521,7 +529,7 @@ static const GDBusPropertyTable transfer_properties[] = {
 };
 
 static const GDBusPropertyTable session_properties[] = {
-	{ "Target", "s", get_target },
+	{ "Target", "s", get_target, NULL, session_target_exists },
 	{ "Root", "s", get_root },
 	{ }
 };
-- 
1.8.1.4


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

end of thread, other threads:[~2013-05-28  8:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-27 23:07 [PATCH 1/4] session: only add Target if it exists Gustavo Padovan
2013-05-27 23:07 ` [PATCH 2/4] obex: extract src and dst address and store it Gustavo Padovan
2013-05-28  8:13   ` Luiz Augusto von Dentz
2013-05-27 23:07 ` [PATCH 3/4] session: add Source and Destination properties Gustavo Padovan
2013-05-27 23:07 ` [PATCH 4/4] opp: Register Session interface for OPP transfers Gustavo Padovan
2013-05-28  8:37 ` [PATCH 1/4] session: only add Target if it exists Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).