From c9db84f9f221665418410c03416d8b3e081f5840 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Mon, 26 May 2008 11:52:24 +0000 Subject: [PATCH] declare g_memory_output_stream_get_data_size(). 2008-05-26 Michael Natterer * gmemoryoutputstream.h: declare g_memory_output_stream_get_data_size(). svn path=/trunk/; revision=6936 --- gio/ChangeLog | 5 +++++ gio/gmemoryoutputstream.h | 26 ++++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 6fe7412..7964242 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-05-26 Michael Natterer + + * gmemoryoutputstream.h: declare + g_memory_output_stream_get_data_size(). + 2008-05-26 Matthias Clasen * tests/*: Make tests work diff --git a/gio/gmemoryoutputstream.h b/gio/gmemoryoutputstream.h index 99fd8c2..7ac6475 100644 --- a/gio/gmemoryoutputstream.h +++ b/gio/gmemoryoutputstream.h @@ -1,5 +1,5 @@ /* 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 @@ -17,7 +17,7 @@ * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307, USA. * - * Author: Christian Kellner + * Author: Christian Kellner */ #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION) @@ -41,7 +41,7 @@ G_BEGIN_DECLS /** * GMemoryOutputStream: - * + * * Implements #GOutputStream for arbitrary memory chunks. **/ typedef struct _GMemoryOutputStream GMemoryOutputStream; @@ -75,22 +75,24 @@ struct _GMemoryOutputStreamClass * @size: size to reallocate @data to * * Changes the size of the memory block pointed to by @data to - * @size bytes. + * @size bytes. * * The function should have the same semantics as realloc(). * * Returns: a pointer to the reallocated memory */ -typedef gpointer (*GReallocFunc) (gpointer data, gsize size); +typedef gpointer (*GReallocFunc) (gpointer data, + gsize size); -GType g_memory_output_stream_get_type (void) G_GNUC_CONST; +GType g_memory_output_stream_get_type (void) G_GNUC_CONST; -GOutputStream *g_memory_output_stream_new (gpointer data, - gsize len, - GReallocFunc realloc_fn, - GDestroyNotify destroy); -gpointer g_memory_output_stream_get_data (GMemoryOutputStream *ostream); -gsize g_memory_output_stream_get_size (GMemoryOutputStream *ostream); +GOutputStream *g_memory_output_stream_new (gpointer data, + gsize len, + GReallocFunc realloc_fn, + GDestroyNotify destroy); +gpointer g_memory_output_stream_get_data (GMemoryOutputStream *ostream); +gsize g_memory_output_stream_get_size (GMemoryOutputStream *ostream); +gsize g_memory_output_stream_get_data_size (GMemoryOutputStream *ostream); G_END_DECLS -- 2.7.4