summaryrefslogtreecommitdiff
path: root/encoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'encoder.h')
-rw-r--r--encoder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/encoder.h b/encoder.h
index 0ff21b2..e78ea3b 100644
--- a/encoder.h
+++ b/encoder.h
@@ -10,6 +10,7 @@ struct encoder_plugin {
gboolean (*init)(gpointer *data);
gssize (*encode)(gpointer data, GInputStream *input,
GOutputStream *output, GError **error);
+ void (*flush)(gpointer data, GOutputStream *output, GError **error);
void (*close)(gpointer data);
};
@@ -22,6 +23,7 @@ struct encoder {
gboolean encoder_init(struct encoder *encoder);
gssize encoder_encode(struct encoder *encoder, GInputStream *input,
GOutputStream *output, GError **error);
+void encoder_flush(struct encoder *encoder, GOutputStream *output, GError **error);
void encoder_close(struct encoder *encoder);
const struct encoder_plugin *encoder_get(const gchar *name);