From 2009ed22116afb8a53111d47de90b981b0648c2e Mon Sep 17 00:00:00 2001 From: George Talusan Date: Mon, 26 Oct 2020 13:45:44 -0400 Subject: [PATCH] swap sourcefile/targetfile to match DBus OBEX API --- src/lib/bluez/obex/obex_file_transfer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/bluez/obex/obex_file_transfer.c b/src/lib/bluez/obex/obex_file_transfer.c index 2d3dafe..558e52e 100644 --- a/src/lib/bluez/obex/obex_file_transfer.c +++ b/src/lib/bluez/obex/obex_file_transfer.c @@ -227,10 +227,10 @@ GVariant *obex_file_transfer_put_file(ObexFileTransfer *self, const gchar *sourc { g_assert(OBEX_FILE_TRANSFER_IS(self)); GVariant *ret = NULL; - GVariant *proxy_ret = g_dbus_proxy_call_sync(self->priv->proxy, "PutFile", g_variant_new ("(ss)", targetfile, sourcefile), G_DBUS_CALL_FLAGS_NONE, -1, NULL, error); + GVariant *proxy_ret = g_dbus_proxy_call_sync(self->priv->proxy, "PutFile", g_variant_new ("(ss)", sourcefile, targetfile), G_DBUS_CALL_FLAGS_NONE, -1, NULL, error); if (proxy_ret != NULL) return NULL; ret = g_variant_ref_sink(proxy_ret); g_variant_unref(proxy_ret); return ret; -} \ No newline at end of file +}