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
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)
};
static const GDBusPropertyTable session_properties[] = {
- { "Target", "s", get_target },
+ { "Target", "s", get_target, NULL, session_target_exists },
{ "Root", "s", get_root },
{ }
};