summaryrefslogtreecommitdiff
path: root/decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder.h')
-rw-r--r--decoder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/decoder.h b/decoder.h
index 36aa04d..4464a50 100644
--- a/decoder.h
+++ b/decoder.h
@@ -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);