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