1 /*
2   Copyright (C) 2005-2017 Marius L. Jøhndal
3 
4   This library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8 
9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13 
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17 
18 */
19 
20 #ifndef CONFIGURATION_H
21 #define CONFIGURATION_H
22 
23 #include <glib.h>
24 
25 struct channel_configuration {
26   gchar *identifier;
27   gchar *url;
28   gchar *spool_directory;
29   gchar *filename_pattern;
30   gchar *playlist;
31   gchar *id3_lead_artist;
32   gchar *id3_content_group;
33   gchar *id3_title;
34   gchar *id3_album;
35   gchar *id3_content_type;
36   gchar *id3_year;
37   gchar *id3_comment;
38   gchar *regex_filter;
39 };
40 
41 struct channel_configuration *channel_configuration_new(GKeyFile *kf, const gchar *identifier,
42                                                         struct channel_configuration *defaults);
43 void channel_configuration_free(struct channel_configuration *c);
44 int channel_configuration_verify_keys(GKeyFile *kf, const char *identifier);
45 
46 #endif /* CONFIGURATION_H */
47