mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-25 03:17:52 +02:00
Add g_memory_input_stream_new_from_data_full/add_data_full() apis
Add an extra state pointer and an extra GDestroyNotify function to the 'Chunk' definition... allowing bindings to attach some extra state to memory chunks (to get memory management correctly from language bindings). Bug #589887
This commit is contained in:
committed by
Murray Cumming
parent
b7051e8da8
commit
42738469d1
@@ -67,15 +67,26 @@ struct _GMemoryInputStreamClass
|
||||
};
|
||||
|
||||
|
||||
GType g_memory_input_stream_get_type (void) G_GNUC_CONST;
|
||||
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);
|
||||
GType g_memory_input_stream_get_type (void) G_GNUC_CONST;
|
||||
GInputStream * g_memory_input_stream_new (void);
|
||||
GInputStream * g_memory_input_stream_new_from_data (const void *data,
|
||||
gssize len,
|
||||
GDestroyNotify destroy);
|
||||
GInputStream * g_memory_input_stream_new_from_data_full (const void *data,
|
||||
gssize len,
|
||||
GDestroyNotify destroy,
|
||||
gpointer user_data,
|
||||
GDestroyNotify user_data_destroy);
|
||||
void g_memory_input_stream_add_data (GMemoryInputStream *stream,
|
||||
const void *data,
|
||||
gssize len,
|
||||
GDestroyNotify destroy);
|
||||
void g_memory_input_stream_add_data_full (GMemoryInputStream *stream,
|
||||
const void *data,
|
||||
gssize len,
|
||||
GDestroyNotify destroy,
|
||||
gpointer user_data,
|
||||
GDestroyNotify user_data_destroy);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user