summaryrefslogtreecommitdiff
path: root/channel.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-08-14 02:05:59 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2009-08-14 02:05:59 +0200
commit6ca9bdc3559e541ad636d283a57ddf22d77b47cf (patch)
tree09ce862ae0c222996b756dc46994d40c4b926b0b /channel.h
parent5acf08a2e540d68093566c006e45572849589750 (diff)
parentbd1f1deafc7f1fec1612d3776377f685f056e5f7 (diff)
Merge branch 'master' of ssh://athena/mnt/scm/git/ircstats
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