diff options
Diffstat (limited to 'decoder.h')
-rw-r--r-- | decoder.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -9,8 +9,8 @@ struct decoder_plugin { const gchar * const *extensions; gboolean (*init)(gpointer *data); - gssize (*decode)(gpointer data, const guchar *inbuf, gsize inbuf_size, - guchar *outbuf, gsize outbuf_size); + gssize (*decode)(gpointer data, GInputStream *input, + GOutputStream *output); void (*close)(gpointer data); }; @@ -21,8 +21,8 @@ struct decoder { }; gboolean decoder_init(struct decoder *decoder); -gssize decoder_decode(struct decoder *decoder, const guchar *inbuf, - gsize inbuf_size, guchar *outbuf, gsize outbuf_size); +gssize decoder_decode(struct decoder *decoder, GInputStream *input, + GOutputStream *output); void decoder_close(struct decoder *decoder); const struct decoder_plugin *decoder_get(const gchar *name); |