declare g_memory_output_stream_get_data_size().

2008-05-26  Michael Natterer  <mitch@imendio.com>

	* gmemoryoutputstream.h: declare
	g_memory_output_stream_get_data_size().


svn path=/trunk/; revision=6936
This commit is contained in:
Michael Natterer 2008-05-26 11:52:24 +00:00 committed by Michael Natterer
parent cdc2910103
commit c9db84f9f2
2 changed files with 19 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2008-05-26 Michael Natterer <mitch@imendio.com>
* gmemoryoutputstream.h: declare
g_memory_output_stream_get_data_size().
2008-05-26 Matthias Clasen <mclasen@redhat.com> 2008-05-26 Matthias Clasen <mclasen@redhat.com>
* tests/*: Make tests work * tests/*: Make tests work

View File

@ -81,16 +81,18 @@ struct _GMemoryOutputStreamClass
* *
* Returns: a pointer to the reallocated memory * 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, GOutputStream *g_memory_output_stream_new (gpointer data,
gsize len, gsize len,
GReallocFunc realloc_fn, GReallocFunc realloc_fn,
GDestroyNotify destroy); GDestroyNotify destroy);
gpointer g_memory_output_stream_get_data (GMemoryOutputStream *ostream); gpointer g_memory_output_stream_get_data (GMemoryOutputStream *ostream);
gsize g_memory_output_stream_get_size (GMemoryOutputStream *ostream); gsize g_memory_output_stream_get_size (GMemoryOutputStream *ostream);
gsize g_memory_output_stream_get_data_size (GMemoryOutputStream *ostream);
G_END_DECLS G_END_DECLS