summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index c69cf2b..86e993d 100644
--- a/channel.c
+++ b/channel.c
@@ -13,7 +13,7 @@ void channel_init() {
channel_count = 0;
}
-struct channel_t *channel_add(const char *name) {
+struct channel_t *channel_add(const char *name, const char *xmlpath) {
channels = realloc(channels, ++channel_count * sizeof(struct channel_t));
if(!channels) {
char *error = strerror(errno);
@@ -22,6 +22,7 @@ struct channel_t *channel_add(const char *name) {
}
struct channel_t *channel = &channels[channel_count-1];
channel->name = strdup(name);
+ channel->xmlpath = strdup(xmlpath);
channel->files = NULL;
memset(channel->hours, 0, 24*4 * sizeof(unsigned long));
return channel;