aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikel Astiz <mikel.astiz@bmw-carit.de>2012-05-30 17:50:21 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-05-31 16:16:08 +0300
commit6a7f0e2141983a6ad81cc8e4c09db7a492ed4980 (patch)
tree7521bb14f9e7fcc5ac19bb560898999a9a66dec5
parentdb27473c2e3650a40b08aea58af45d1bcfe97cfb (diff)
downloadobexd-6a7f0e2141983a6ad81cc8e4c09db7a492ed4980.tar.gz
client: Expose all transfers in D-Bus
Relying on a internal policy (based on transfer type) to decide if a transfer should be exposed or not in D-Bus has some limitations. The simplest possible alternative to this is to expose all transfers in D-Bus, assuming the overhead is not significant.
-rw-r--r--client/transfer.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/client/transfer.c b/client/transfer.c
index c0cb636..14006ef 100644
--- a/client/transfer.c
+++ b/client/transfer.c
@@ -263,12 +263,6 @@ gboolean obc_transfer_register(struct obc_transfer *transfer,
const char *owner,
GError **err)
{
- /* for OBEX specific mime types we don't need to register a transfer */
- if (transfer->type != NULL &&
- (strncmp(transfer->type, "x-obex/", 7) == 0 ||
- strncmp(transfer->type, "x-bt/", 5) == 0))
- goto done;
-
transfer->owner = g_strdup(owner);
transfer->path = g_strdup_printf("%s/transfer%ju",
@@ -290,7 +284,6 @@ gboolean obc_transfer_register(struct obc_transfer *transfer,
return FALSE;
}
-done:
DBG("%p registered %s", transfer, transfer->path);
return TRUE;