source: trunk/gsdl/src/library/mgq.h@ 4

Last change on this file since 4 was 4, checked in by sjboddie, 25 years ago

Initial revision

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 769 bytes
Line 
1#ifdef __cplusplus
2extern "C" {
3#endif
4
5enum result_kinds {
6 result_docs, /* Return the documents found in last search */
7 result_docnums, /* Return document id numbers and weights */
8 result_termfreqs, /* Return terms and frequencies */
9 result_terms /* Return matching query terms */
10 };
11
12int mgq_ask(char *line);
13int mgq_results(enum result_kinds kind,int skip, int howmany, int (*sender)(char *, int, int, float, void *), void *ptr);
14int mgq_numdocs(void);
15int mgq_numterms(void);
16int load_database(char *mgdir, char *gensuffix, char *textsuffix);
17
18/* this will equal "" when a database is not loaded */
19/* if a database is loaded it will equal its gensuffix */
20extern char db_loaded_name[256];
21
22
23#ifdef __cplusplus
24}
25#endif
Note: See TracBrowser for help on using the repository browser.