summaryrefslogtreecommitdiff
path: root/obexd/client/transfer.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-12-21 13:06:55 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-12-21 14:53:42 +0200
commitda068075ce750eb299906fcb6f4f7115222b87c6 (patch)
treea314324d5c325c2d48e7f9ee34104ae39c5abb86 /obexd/client/transfer.c
parent793f73091affd74135c6235efa7649ef3daf0d3d (diff)
downloadbluez-da068075ce750eb299906fcb6f4f7115222b87c6.tar.gz
obexd: Rename Progress property to Transferred
Diffstat (limited to 'obexd/client/transfer.c')
-rw-r--r--obexd/client/transfer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/obexd/client/transfer.c b/obexd/client/transfer.c
index 2685d7ccf..5c652c0ff 100644
--- a/obexd/client/transfer.c
+++ b/obexd/client/transfer.c
@@ -254,14 +254,15 @@ static gboolean get_filename(const GDBusPropertyTable *property,
return TRUE;
}
-static gboolean progress_exists(const GDBusPropertyTable *property, void *data)
+static gboolean transferred_exists(const GDBusPropertyTable *property,
+ void *data)
{
struct obc_transfer *transfer = data;
return transfer->obex != NULL;
}
-static gboolean get_progress(const GDBusPropertyTable *property,
+static gboolean get_transferred(const GDBusPropertyTable *property,
DBusMessageIter *iter, void *data)
{
struct obc_transfer *transfer = data;
@@ -311,7 +312,7 @@ static const GDBusPropertyTable obc_transfer_properties[] = {
{ "Name", "s", get_name, NULL, name_exists },
{ "Size", "t", get_size },
{ "Filename", "s", get_filename, NULL, filename_exists },
- { "Progress", "t", get_progress, NULL, progress_exists },
+ { "Transferred", "t", get_transferred, NULL, transferred_exists },
{ }
};
@@ -679,7 +680,7 @@ static gboolean report_progress(gpointer data)
transfer_set_status(transfer, TRANSFER_STATUS_ACTIVE);
g_dbus_emit_property_changed(transfer->conn, transfer->path,
- TRANSFER_INTERFACE, "Progress");
+ TRANSFER_INTERFACE, "Transferred");
return TRUE;
}