summaryrefslogtreecommitdiff
path: root/encoder.c
blob: 72bca9d4998c8c4e3e95435c047072d62444e7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "encoder.h"

gboolean encoder_init(struct encoder *encoder) {
	return encoder->encoder->init(&encoder->data);
}

gssize encoder_encode(struct encoder *encoder, const guchar *inbuf, gsize inbuf_size,
			guchar *outbuf, gsize outbuf_size) {
	return encoder->encoder->encode(encoder->data, inbuf, inbuf_size,
			outbuf, outbuf_size);
}

void encoder_close(struct encoder *encoder) {
	encoder->encoder->close(encoder->data);
}