summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendafpbrowse.c
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2011-06-19 00:29:19 +0200
committerChristian Kellner <gicmo@gnome.org>2011-08-25 21:18:39 +0200
commit9a547320ea6e7d245e89e1c9315f3bee79d22f0c (patch)
treefbabe9ec430f9b73137ce382c66137b6bd53fbdb /daemon/gvfsbackendafpbrowse.c
parent6ed9bbbdf9b11cabcb7a1ce814fd55bfbf96bff9 (diff)
downloadgvfs-9a547320ea6e7d245e89e1c9315f3bee79d22f0c.tar.gz
afp: write our own data reading functions instead of relying on GDataInputStream
Diffstat (limited to 'daemon/gvfsbackendafpbrowse.c')
-rw-r--r--daemon/gvfsbackendafpbrowse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/daemon/gvfsbackendafpbrowse.c b/daemon/gvfsbackendafpbrowse.c
index 2db0ce91..02b9ab92 100644
--- a/daemon/gvfsbackendafpbrowse.c
+++ b/daemon/gvfsbackendafpbrowse.c
@@ -132,12 +132,12 @@ get_srvr_parms_cb (GVfsAfpConnection *afp_connection,
}
/* server time */
- (void)g_data_input_stream_read_int32 (G_DATA_INPUT_STREAM (reply), NULL, NULL);
+ g_vfs_afp_reply_read_int32 (reply, NULL);
g_slist_free_full (data->afp_backend->volumes, (GDestroyNotify) volume_data_free);
data->afp_backend->volumes = NULL;
-
- num_volumes = g_data_input_stream_read_byte (G_DATA_INPUT_STREAM (reply), NULL, NULL);
+
+ g_vfs_afp_reply_read_byte (reply, &num_volumes);
for (i = 0; i < num_volumes; i++)
{
guint8 flags;
@@ -145,8 +145,8 @@ get_srvr_parms_cb (GVfsAfpConnection *afp_connection,
VolumeData *volume_data;
- flags = g_data_input_stream_read_byte (G_DATA_INPUT_STREAM (reply), NULL, NULL);
- vol_name = g_vfs_afp_reply_read_pascal (reply);
+ g_vfs_afp_reply_read_byte (reply, &flags);
+ g_vfs_afp_reply_read_pascal (reply, &vol_name);
if (!vol_name)
continue;