#ifndef TAGGER_H #define TAGGER_H #include "list.h" struct tagger { char *filename; void *private; }; struct tagger_ops { int (*open)(struct tagger **tagger, const char *filename, int wr); int (*save)(struct tagger *tagger); void (*close)(struct tagger *tagger); void (*get_comments)(const struct tagger *tagger, struct list_head *comment_head); void (*set_comments)(struct tagger *tagger, const struct list_head *comment_head); }; #endif