summaryrefslogtreecommitdiff
path: root/encode_converter.h
blob: 054598e8748174c3417d89c703a02672416ea81e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef ENCODE_CONVERTER_H
#define ENCODE_CONVERTER_H

#include "encoder.h"

#include <glib-object.h>

#define CONVERTER_TYPE_ENCODE				(encode_converter_get_type())
#define ENCODE_CONVERTER(obj)				(G_TYPE_CHECK_INSTANCE_CAST((obj), CONVERTER_TYPE_ENCODE, EncodeConverter))
#define CONVERTER_IS_ENCODE(obj)			(G_TYPE_CHECK_INSTANCE_TYPE((obj), CONVERTER_TYPE_ENCODE))
#define ENCODE_CONVERTER_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST((klass), CONVERTER_TYPE_ENCODE, EncodeConverterClass))
#define CONVERTER_IS_ENCODE_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE((klass), CONVERTER_TYPE_ENCODE))
#define ENCODE_CONVERTER_GET_CLASS(obj)		(G_TYPE_INSTANCE_GET_CLASS((obj), CONVERTER_TYPE_ENCODE, EncodeConverterClass))

typedef struct _EncodeConverter EncodeConverter;
typedef struct _EncodeConverterClass EncodeConverterClass;

struct _EncodeConverter {
	GObject parent_instance;

	struct encoder encoder;
};

struct _EncodeConverterClass {
	GObjectClass parent_class;
};

GType encode_converter_get_type();
EncodeConverter *encode_converter_new(const struct encoder_plugin *encoder_plugin);

#endif