summaryrefslogtreecommitdiff
path: root/channel.h
blob: 3f4e4cd9fe7ccfe45f1d9e4873d5dec04e078a05 (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
#ifndef _CHANNEL_H_
#define _CHANNEL_H_

#include "regexset.h"

struct channel_file_t {
	char *path;
	struct regexset_t *rs;
	struct channel_file_t *next;
};

struct channel_t {
	char *name;
	char *xmlpath;
	struct channel_file_t *files;

	unsigned long hours[24*4];
};

void channel_init();
struct channel_t *channel_add(const char *name, const char *xmlpath);
struct channel_file_t *channel_file_add(struct channel_t *channel, const char *path, int rs_index);
int channel_get_count();
struct channel_t *channel_get(int index);
void channel_free();

#endif