gvfs r1866 - in trunk: . client
- From: gicmo svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1866 - in trunk: . client
- Date: Tue, 5 Aug 2008 15:41:32 +0000 (UTC)
Author: gicmo
Date: Tue Aug 5 15:41:32 2008
New Revision: 1866
URL: http://svn.gnome.org/viewvc/gvfs?rev=1866&view=rev
Log:
Remove wrong dbus reply struct checks
Remove wrong dbus reply struct checks for replace_async,
create_async and append_async that would live to (false)
invalid reply errors.
Modified:
trunk/ChangeLog
trunk/client/gdaemonfile.c
Modified: trunk/client/gdaemonfile.c
==============================================================================
--- trunk/client/gdaemonfile.c (original)
+++ trunk/client/gdaemonfile.c Tue Aug 5 15:41:32 2008
@@ -2219,21 +2219,11 @@
GCancellable *cancellable,
gpointer callback_data)
{
- DBusMessageIter iter;
guint32 fd_id;
StreamOpenParams *open_params;
open_params = g_slice_new0 (StreamOpenParams);
- if (!dbus_message_iter_init (reply, &iter) ||
- (dbus_message_iter_get_arg_type (&iter) != DBUS_TYPE_STRUCT))
- {
- g_simple_async_result_set_error (result,
- G_IO_ERROR, G_IO_ERROR_FAILED,
- "Invalid return value from append_to_async");
- goto failure;
- }
-
if (!dbus_message_get_args (reply, NULL,
DBUS_TYPE_UINT32, &fd_id,
DBUS_TYPE_BOOLEAN, &open_params->can_seek,
@@ -2307,21 +2297,11 @@
GCancellable *cancellable,
gpointer callback_data)
{
- DBusMessageIter iter;
guint32 fd_id;
StreamOpenParams *open_params;
open_params = g_slice_new0 (StreamOpenParams);
- if (!dbus_message_iter_init (reply, &iter) ||
- (dbus_message_iter_get_arg_type (&iter) != DBUS_TYPE_STRUCT))
- {
- g_simple_async_result_set_error (result,
- G_IO_ERROR, G_IO_ERROR_FAILED,
- "Invalid return value from create_async");
- goto failure;
- }
-
if (!dbus_message_get_args (reply, NULL,
DBUS_TYPE_UINT32, &fd_id,
DBUS_TYPE_BOOLEAN, &open_params->can_seek,
@@ -2576,21 +2556,11 @@
GCancellable *cancellable,
gpointer callback_data)
{
- DBusMessageIter iter;
guint32 fd_id;
StreamOpenParams *open_params;
open_params = g_slice_new0 (StreamOpenParams);
- if (!dbus_message_iter_init (reply, &iter) ||
- (dbus_message_iter_get_arg_type (&iter) != DBUS_TYPE_STRUCT))
- {
- g_simple_async_result_set_error (result,
- G_IO_ERROR, G_IO_ERROR_FAILED,
- "Invalid return value from replace_async");
- goto failure;
- }
-
if (!dbus_message_get_args (reply, NULL,
DBUS_TYPE_UINT32, &fd_id,
DBUS_TYPE_BOOLEAN, &open_params->can_seek,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]