diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-25 23:33:46 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-12-25 23:33:46 +0100 |
commit | 3a23129ac5110d72040692b229554babc2aa2a99 (patch) | |
tree | 81a74d9d92ec6f474f038f0089d69ffb6b2ecbc6 /encoder.h | |
parent | 03d091e6150a17a71f1f8e6440ed5ea9aaa1311d (diff) |
Added encoder_flush() to flush encoder buffers.old
Diffstat (limited to 'encoder.h')
-rw-r--r-- | encoder.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |