format.c 422 Bytes
Newer Older
Jack Moffitt's avatar
Jack Moffitt committed
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
/* format.c
**
** format plugin implementation
**
*/

#include <stdlib.h>
#include <string.h>

#include "connection.h"
#include "refbuf.h"

#include "format.h"

#include "format_vorbis.h"

format_plugin_t *format_get_plugin(format_type_t type)
{
	format_plugin_t *plugin;

	switch (type) {
	case FORMAT_TYPE_VORBIS:
		plugin = format_vorbis_get_plugin();
		break;
	default:
		plugin = NULL;
		break;
	}

	return plugin;
}