summaryrefslogtreecommitdiff
path: root/modules/mda/mda.c
blob: 208facc044f476348cd710ecd7972cabc03be383 (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
32
33
34
35
36
37
38
39
40
/**
 * @file mda.c  Symbian MDA audio driver
 *
 * Copyright (C) 2010 Creytiv.com
 */
#include <re.h>
#include <baresip.h>
#include "mda.h"


static struct auplay *auplay;
static struct ausrc *ausrc;


static int module_init(void)
{
	int err;

	err  = auplay_register(&auplay, "mda", mda_player_alloc);
	err |= ausrc_register(&ausrc, "mda", mda_recorder_alloc);

	return err;
}


static int module_close(void)
{
	auplay = mem_deref(auplay);
	ausrc  = mem_deref(ausrc);

	return 0;
}


EXPORT_SYM const struct mod_export DECL_EXPORTS(mda) = {
	"mda",
	"audio",
	module_init,
	module_close,
};