/* GIO - GLib Input, Output and Streaming Library
- *
+ *
* Copyright (C) 2006-2007 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
/**
* GSeekable:
- *
+ *
* Seek object for streaming operations.
- **/
+ **/
typedef struct _GSeekableIface GSeekableIface;
/**
* @seek: Seeks to a location within a stream.
* @can_truncate: Chekcs if truncation is suppored by the stream.
* @truncate_fn: Truncates a stream.
- *
+ *
* Provides an interface for implementing seekable functionality on I/O Streams.
- **/
+ **/
struct _GSeekableIface
{
GTypeInterface g_iface;
/* Virtual Table */
-
+
goffset (* tell) (GSeekable *seekable);
-
+
gboolean (* can_seek) (GSeekable *seekable);
gboolean (* seek) (GSeekable *seekable,
goffset offset,
GSeekType type,
GCancellable *cancellable,
GError **error);
-
+
gboolean (* can_truncate) (GSeekable *seekable);
gboolean (* truncate_fn) (GSeekable *seekable,
goffset offset,
/* TODO: Async seek/truncate */
};
-GType g_seekable_get_type (void) G_GNUC_CONST;
+GType g_seekable_get_type (void) G_GNUC_CONST;
goffset g_seekable_tell (GSeekable *seekable);
gboolean g_seekable_can_seek (GSeekable *seekable);