blob: 555757d18cb9f9cd2ac4f96a8f4c57447fc1ec34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "decoder.h"
gboolean decoder_init(struct decoder *decoder) {
return decoder->decoder->init(&(decoder->data));
}
gssize decoder_decode(struct decoder *decoder, const guchar *inbuf,
gsize inbuf_size, guchar *outbuf, gsize outbuf_size) {
return decoder->decoder->decode(decoder->data, inbuf, inbuf_size,
outbuf, outbuf_size);
}
void decoder_close(struct decoder *decoder) {
decoder->decoder->close(decoder->data);
}
|