summaryrefslogtreecommitdiff
path: root/channel.h
diff options
context:
space:
mode:
Diffstat (limited to 'channel.h')
-rw-r--r--channel.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/channel.h b/channel.h
index cda0df5..73f2dde 100644
--- a/channel.h
+++ b/channel.h
@@ -6,18 +6,19 @@
struct channel_file_t {
char *path;
struct regexset_t *rs;
+ struct channel_file_t *next;
};
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);
+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