comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 #ifndef TOPIC_H
2 #define TOPIC_H
3
4 struct topic; // opaque
5
6 struct topic *topic_create(void);
7 void topic_destroy(struct topic *);
8
9 void topic_addtitle(struct topic *, const char *);
10 void topic_addref(struct topic *, const char *);
11 void topic_setbody(struct topic *, const char *, size_t len);
12
13 const char *topic_getbody(struct topic *);
14 int topic_getnumtitles(struct topic *);
15 const char *topic_gettitle(struct topic *, int ix);
16 int topic_getnumrefs(struct topic *);
17 const char *topic_getref(struct topic *, int ix);
18
19 #endif /* TOPIC_H */