source: trunk/third/gnome-vfs/libgnomevfs/gnome-vfs-iobuf.h @ 17128

Revision 17128, 1.8 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17127, which included commits to RCS files with non-trunk default branches.
Line 
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2/* gnome-vfs-iobuf.h - Buffered I/O for the GNOME Virtual File System.
3
4   Copyright (C) 1999 Free Software Foundation
5
6   The Gnome Library is free software; you can redistribute it and/or
7   modify it under the terms of the GNU Library General Public License as
8   published by the Free Software Foundation; either version 2 of the
9   License, or (at your option) any later version.
10
11   The Gnome Library is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   Library General Public License for more details.
15
16   You should have received a copy of the GNU Library General Public
17   License along with the Gnome Library; see the file COPYING.LIB.  If not,
18   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19   Boston, MA 02111-1307, USA.
20
21   Author: Ettore Perazzoli <ettore@gnu.org>
22*/
23
24#ifndef GNOME_VFS_IOBUF_H
25#define GNOME_VFS_IOBUF_H
26
27#include <libgnomevfs/gnome-vfs-file-size.h>
28#include <libgnomevfs/gnome-vfs-result.h>
29
30typedef struct GnomeVFSIOBuf GnomeVFSIOBuf;
31
32GnomeVFSIOBuf   *gnome_vfs_iobuf_new     (gint              fd);
33void             gnome_vfs_iobuf_destroy (GnomeVFSIOBuf    *iobuf);
34GnomeVFSResult   gnome_vfs_iobuf_read    (GnomeVFSIOBuf    *iobuf,
35                                          gpointer          buffer,
36                                          GnomeVFSFileSize  bytes,
37                                          GnomeVFSFileSize *bytes_read);
38GnomeVFSResult   gnome_vfs_iobuf_peekc   (GnomeVFSIOBuf    *iobuf,
39                                          gchar            *c);
40GnomeVFSResult   gnome_vfs_iobuf_write   (GnomeVFSIOBuf    *iobuf,
41                                          gconstpointer     buffer,
42                                          GnomeVFSFileSize  bytes,
43                                          GnomeVFSFileSize *bytes_written);
44GnomeVFSResult   gnome_vfs_iobuf_flush   (GnomeVFSIOBuf    *iobuf);
45
46#endif /* GNOME_VFS_IOBUF_H */
Note: See TracBrowser for help on using the repository browser.