Remove mention of non-existing calls from docs

The docs mentions a separate seekable API for the various file streams
which don't actually exists. Change this to refer to the generic
GSeekable calls.
This commit is contained in:
Alexander Larsson 2009-05-25 15:46:35 +02:00
parent 3c0feca7f1
commit f99be75ff9
3 changed files with 20 additions and 23 deletions

View File

@ -44,12 +44,10 @@
* *
* GFileInputStream implements #GSeekable, which allows the input * GFileInputStream implements #GSeekable, which allows the input
* stream to jump to arbitrary positions in the file, provided the * stream to jump to arbitrary positions in the file, provided the
* filesystem of the file allows it. In addition to the generic * filesystem of the file allows it. To find the position of a file
* g_seekable_ API, GFileInputStream has its own API for seeking * input stream, use g_seekable_tell(). To find out if a file input
* and positioning. To find the position of a file input stream, * stream supports seeking, use g_seekable_stream_can_seek().
* use g_file_input_stream_tell(). To find out if a file input * To position a file input stream, use g_seekable_seek().
* stream supports seeking, use g_file_input_stream_can_seek().
* To position a file input stream, use g_file_input_stream_seek().
**/ **/
static void g_file_input_stream_seekable_iface_init (GSeekableIface *iface); static void g_file_input_stream_seekable_iface_init (GSeekableIface *iface);

View File

@ -46,16 +46,16 @@
* GFileIOStream implements #GSeekable, which allows the io * GFileIOStream implements #GSeekable, which allows the io
* stream to jump to arbitrary positions in the file and to truncate * stream to jump to arbitrary positions in the file and to truncate
* the file, provided the filesystem of the file supports these * the file, provided the filesystem of the file supports these
* operations. In addition to the generic g_seekable_ API, * operations.
* GFileIOStream has its own API for seeking and positioning.
* To find the position of a file io stream, use
* g_file_io_stream_tell().
* *
* To find out if a file io stream supports seeking, use g_file_io_stream_can_seek(). * To find the position of a file io stream, use
* To position a file io stream, use g_file_io_stream_seek(). * g_seekable_tell().
*
* To find out if a file io stream supports seeking, use g_seekable_can_seek().
* To position a file io stream, use g_seekable_seek().
* To find out if a file io stream supports truncating, use * To find out if a file io stream supports truncating, use
* g_file_io_stream_can_truncate(). To truncate a file io * g_seekable_can_truncate(). To truncate a file io
* stream, use g_file_io_stream_truncate(). * stream, use g_seekable_truncate().
* *
* The default implementation of all the #GFileIOStream operations * The default implementation of all the #GFileIOStream operations
* and the implementation of #GSeekable just call into the same operations * and the implementation of #GSeekable just call into the same operations

View File

@ -45,15 +45,14 @@
* GFileOutputStream implements #GSeekable, which allows the output * GFileOutputStream implements #GSeekable, which allows the output
* stream to jump to arbitrary positions in the file and to truncate * stream to jump to arbitrary positions in the file and to truncate
* the file, provided the filesystem of the file supports these * the file, provided the filesystem of the file supports these
* operations. In addition to the generic g_seekable_ API, * operations.
* GFileOutputStream has its own API for seeking and positioning. *
* To find the position of a file output stream, use * To find the position of a file output stream, use g_seekable_tell().
* g_file_output_stream_tell(). To find out if a file output * To find out if a file output stream supports seeking, use
* stream supports seeking, use g_file_output_stream_can_seek(). * g_seekable_can_seek().To position a file output stream, use
* To position a file output stream, use g_file_output_stream_seek(). * g_seekable_seek(). To find out if a file output stream supports
* To find out if a file output stream supports truncating, use * truncating, use g_seekable_can_truncate(). To truncate a file output
* g_file_output_stream_can_truncate(). To truncate a file output * stream, use g_seekable_truncate().
* stream, use g_file_output_stream_truncate().
**/ **/
static void g_file_output_stream_seekable_iface_init (GSeekableIface *iface); static void g_file_output_stream_seekable_iface_init (GSeekableIface *iface);