Mercurial > ~dholland > hg > ag > index.cgi
diff helpgen/topic.h @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/helpgen/topic.h Sat Dec 22 17:52:45 2007 -0500 @@ -0,0 +1,19 @@ +#ifndef TOPIC_H +#define TOPIC_H + +struct topic; // opaque + +struct topic *topic_create(void); +void topic_destroy(struct topic *); + +void topic_addtitle(struct topic *, const char *); +void topic_addref(struct topic *, const char *); +void topic_setbody(struct topic *, const char *, size_t len); + +const char *topic_getbody(struct topic *); +int topic_getnumtitles(struct topic *); +const char *topic_gettitle(struct topic *, int ix); +int topic_getnumrefs(struct topic *); +const char *topic_getref(struct topic *, int ix); + +#endif /* TOPIC_H */