Initial support for FLAC (the free lossless audio codec).
[paraslash.git] / flac_afh.c
1 /*
2 * Copyright (C) 2011 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file flac_afh.c Audio format handler for flac files. */
8
9 #include <regex.h>
10
11 #include "para.h"
12 #include "error.h"
13 #include "afh.h"
14
15 static int flac_get_file_info(char *map, size_t numbytes, __a_unused int fd,
16 struct afh_info *afhi)
17 {
18 return 0;
19 }
20
21 static const char* flac_suffixes[] = {"flac", NULL};
22
23 /**
24 * The init function of the flac audio format handler.
25 *
26 * \param afh pointer to the struct to initialize
27 */
28 void flac_afh_init(struct audio_format_handler *afh)
29 {
30 afh->get_file_info = flac_get_file_info,
31 afh->suffixes = flac_suffixes;
32 }