From f99be75ff9d62f8e8e4e8850e34fe1020e58cb8c Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 25 May 2009 15:46:35 +0200 Subject: [PATCH] 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. --- gio/gfileinputstream.c | 10 ++++------ gio/gfileiostream.c | 14 +++++++------- gio/gfileoutputstream.c | 17 ++++++++--------- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/gio/gfileinputstream.c b/gio/gfileinputstream.c index 0493f382..502584b8 100644 --- a/gio/gfileinputstream.c +++ b/gio/gfileinputstream.c @@ -44,12 +44,10 @@ * * GFileInputStream implements #GSeekable, which allows the input * stream to jump to arbitrary positions in the file, provided the - * filesystem of the file allows it. In addition to the generic - * g_seekable_ API, GFileInputStream has its own API for seeking - * and positioning. To find the position of a file input stream, - * use g_file_input_stream_tell(). To find out if a file input - * stream supports seeking, use g_file_input_stream_can_seek(). - * To position a file input stream, use g_file_input_stream_seek(). + * filesystem of the file allows it. To find the position of a file + * input stream, use g_seekable_tell(). To find out if a file input + * stream supports seeking, use g_seekable_stream_can_seek(). + * To position a file input stream, use g_seekable_seek(). **/ static void g_file_input_stream_seekable_iface_init (GSeekableIface *iface); diff --git a/gio/gfileiostream.c b/gio/gfileiostream.c index 14cdbfef..d7bff9df 100644 --- a/gio/gfileiostream.c +++ b/gio/gfileiostream.c @@ -46,16 +46,16 @@ * GFileIOStream implements #GSeekable, which allows the io * stream to jump to arbitrary positions in the file and to truncate * the file, provided the filesystem of the file supports these - * operations. In addition to the generic g_seekable_ API, - * GFileIOStream has its own API for seeking and positioning. + * operations. + * * To find the position of a file io stream, use - * g_file_io_stream_tell(). + * g_seekable_tell(). * - * To find out if a file io stream supports seeking, use g_file_io_stream_can_seek(). - * To position a file io stream, use g_file_io_stream_seek(). + * 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 - * g_file_io_stream_can_truncate(). To truncate a file io - * stream, use g_file_io_stream_truncate(). + * g_seekable_can_truncate(). To truncate a file io + * stream, use g_seekable_truncate(). * * The default implementation of all the #GFileIOStream operations * and the implementation of #GSeekable just call into the same operations diff --git a/gio/gfileoutputstream.c b/gio/gfileoutputstream.c index 494734c5..832042e6 100644 --- a/gio/gfileoutputstream.c +++ b/gio/gfileoutputstream.c @@ -45,15 +45,14 @@ * GFileOutputStream implements #GSeekable, which allows the output * stream to jump to arbitrary positions in the file and to truncate * the file, provided the filesystem of the file supports these - * operations. In addition to the generic g_seekable_ API, - * GFileOutputStream has its own API for seeking and positioning. - * To find the position of a file output stream, use - * g_file_output_stream_tell(). To find out if a file output - * stream supports seeking, use g_file_output_stream_can_seek(). - * To position a file output stream, use g_file_output_stream_seek(). - * To find out if a file output stream supports truncating, use - * g_file_output_stream_can_truncate(). To truncate a file output - * stream, use g_file_output_stream_truncate(). + * operations. + * + * To find the position of a file output stream, use g_seekable_tell(). + * To find out if a file output stream supports seeking, use + * g_seekable_can_seek().To position a file output stream, use + * g_seekable_seek(). To find out if a file output stream supports + * truncating, use g_seekable_can_truncate(). To truncate a file output + * stream, use g_seekable_truncate(). **/ static void g_file_output_stream_seekable_iface_init (GSeekableIface *iface); -- 2.34.1