#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; struct channel_file_t *files; }; void channel_init(); struct channel_t *channel_add(const char *name); 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