Reorganized source tree
[pazpar2-moved-to-github.git] / src / termlists.h
1 #ifndef TERMLISTS_H
2 #define TERMLISTS_H
3
4 #include <yaz/nmem.h>
5
6 struct termlist_score
7 {
8     char *term;
9     int frequency;
10 };
11
12 struct termlist;
13
14 struct termlist *termlist_create(NMEM nmem, int numterms, int highscore_size);
15 void termlist_insert(struct termlist *tl, const char *term);
16 struct termlist_score **termlist_highscore(struct termlist *tl, int *len);
17
18 #endif
19
20 /*
21  * Local variables:
22  * c-basic-offset: 4
23  * indent-tabs-mode: nil
24  * End:
25  * vim: shiftwidth=4 tabstop=8 expandtab
26  */