From 2c362b7f9eb7cc81f37970e24c5b5dcdc56ea6d5 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 5 Dec 2007 10:38:03 +0000 Subject: Rename all struct members named: read, write, close, truncate, or mount to 2007-12-05 Alexander Larsson * gbufferedinputstream.c: * gbufferedoutputstream.c: * gdrive.[ch]: * gfile.[ch]: * gfileenumerator.[ch]: * gfileinputstream.c: * gfileoutputstream.[ch]: * gfilterinputstream.c: * gfilteroutputstream.c: * ginputstream.[ch]: * glocalfile.c: * glocalfileenumerator.c: * glocalfileinputstream.c: * glocalfileoutputstream.c: * gmemoryinputstream.c: * gmemoryoutputstream.c: * goutputstream.[ch]: * gseekable.[ch]: * gunixdrive.c: * gunixinputstream.c: * gunixoutputstream.c: Rename all struct members named: read, write, close, truncate, or mount to foo_fn, as these are reserved names and could be defined as macros in libc. (#501645) svn path=/trunk/; revision=6048 --- gio/gseekable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gio/gseekable.h') diff --git a/gio/gseekable.h b/gio/gseekable.h index b289df587..052534903 100644 --- a/gio/gseekable.h +++ b/gio/gseekable.h @@ -48,7 +48,7 @@ typedef struct _GSeekableIface GSeekableIface; * @can_seek: Checks if seeking is supported by the stream. * @seek: Seeks to a location within a stream. * @can_truncate: Chekcs if truncation is suppored by the stream. - * @truncate: Truncates a stream. + * @truncate_fn: Truncates a stream. * * Provides an interface for implementing seekable functionality on I/O Streams. **/ @@ -68,7 +68,7 @@ struct _GSeekableIface GError **error); gboolean (* can_truncate) (GSeekable *seekable); - gboolean (* truncate) (GSeekable *seekable, + gboolean (* truncate_fn) (GSeekable *seekable, goffset offset, GCancellable *cancellable, GError **error); -- cgit v1.2.3-70-g09d2