Improve API so that you can use multile chunks of memory and custom

2008-01-04  Alexander Larsson  <alexl@redhat.com>

        * gio.symbols:
        * gmemoryinputstream.[ch]:
	Improve API so that you can use multile chunks
	of memory and custom destroy functions. (#506374)



svn path=/trunk/; revision=6241
This commit is contained in:
Alexander Larsson
2008-01-04 10:17:57 +00:00
committed by Alexander Larsson
parent 0dea8132fd
commit ce50248037
4 changed files with 117 additions and 80 deletions

View File

@@ -70,12 +70,14 @@ struct _GMemoryInputStreamClass
GType g_memory_input_stream_get_type (void) G_GNUC_CONST;
GInputStream * g_memory_input_stream_from_data (const void *data,
gssize len);
void g_memory_input_stream_set_free_data (GMemoryInputStream *stream,
gboolean free_data);
const void *g_memory_input_stream_get_data (GMemoryInputStream *stream);
gsize g_memory_input_stream_get_data_size (GMemoryInputStream *stream);
GInputStream * g_memory_input_stream_new (void);
GInputStream * g_memory_input_stream_new_from_data (const void *data,
gssize len,
GDestroyNotify destroy);
void g_memory_input_stream_add_data (GMemoryInputStream *stream,
const void *data,
gssize len,
GDestroyNotify destroy);
G_END_DECLS