diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-13 02:23:33 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-08-13 02:23:33 +0200 |
commit | 93c935a639da55c1bc4d39e616588cc0f73df1e3 (patch) | |
tree | a016e5b0f12cd31931a23d859bce0605249e33b1 /channel.h | |
parent | 9b25065810fca6e0238c4c98ec3c09ba4d8abc35 (diff) |
Added channels.
Minor fixes - known bugs!
Diffstat (limited to 'channel.h')
-rw-r--r-- | channel.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/channel.h b/channel.h new file mode 100644 index 0000000..cda0df5 --- /dev/null +++ b/channel.h @@ -0,0 +1,23 @@ +#ifndef _CHANNEL_H_ +#define _CHANNEL_H_ + +#include "regexset.h" + +struct channel_file_t { + char *path; + struct regexset_t *rs; +}; + +struct channel_t { + char *name; + int file_count; + struct channel_file_t *files; +}; + +void channel_init(); +struct channel_t *channel_add(const char *name); +int channel_set_file_count(struct channel_t *channel, int count); +int channel_set_file(struct channel_t *channel, int index, const char *path, int rs_index); +void channel_free(); + +#endif |