diff options
Diffstat (limited to 'encoder.h')
-rw-r--r-- | encoder.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,8 +8,8 @@ struct encoder_plugin { const gchar *name; gboolean (*init)(gpointer *data); - gssize (*encode)(gpointer data, const guchar *inbuf, gsize inbuf_size, - guchar *outbuf, gsize outbuf_size); + gssize (*encode)(gpointer data, GInputStream *input, + GOutputStream *output); void (*close)(gpointer data); }; @@ -20,8 +20,8 @@ struct encoder { }; gboolean encoder_init(struct encoder *encoder); -gssize encoder_encode(struct encoder *encoder, const guchar *inbuf, gsize inbuf_size, - guchar *outbuf, gsize outbuf_size); +gssize encoder_encode(struct encoder *encoder, GInputStream *input, + GOutputStream *output); void encoder_close(struct encoder *encoder); const struct encoder_plugin *encoder_get(const gchar *name); |