summaryrefslogtreecommitdiff
path: root/encoder.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-12-25 23:33:46 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2010-12-25 23:33:46 +0100
commit3a23129ac5110d72040692b229554babc2aa2a99 (patch)
tree81a74d9d92ec6f474f038f0089d69ffb6b2ecbc6 /encoder.c
parent03d091e6150a17a71f1f8e6440ed5ea9aaa1311d (diff)
Added encoder_flush() to flush encoder buffers.old
Diffstat (limited to 'encoder.c')
-rw-r--r--encoder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/encoder.c b/encoder.c
index 2af1de9..8e84805 100644
--- a/encoder.c
+++ b/encoder.c
@@ -9,6 +9,10 @@ gssize encoder_encode(struct encoder *encoder, GInputStream *input,
return encoder->encoder->encode(encoder->data, input, output, error);
}
+void encoder_flush(struct encoder *encoder, GOutputStream *output, GError **error) {
+ encoder->encoder->flush(encoder->data, output, error);
+}
+
void encoder_close(struct encoder *encoder) {
encoder->encoder->close(encoder->data);
}