Last change
on this file since 308 was 115, checked in by rjmcnab, 25 years ago |
Made the source more portable.
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.0 KB
|
Line | |
---|
1 | /**********************************************************************
|
---|
2 | *
|
---|
3 | * mgq.h --
|
---|
4 | * Copyright (C) 1999 The New Zealand Digital Library Project
|
---|
5 | *
|
---|
6 | * PUT COPYRIGHT NOTICE HERE
|
---|
7 | *
|
---|
8 | * $Id: mgq.h 115 1999-01-19 01:38:20Z rjmcnab $
|
---|
9 | *
|
---|
10 | *********************************************************************/
|
---|
11 |
|
---|
12 |
|
---|
13 | #ifndef MGQ_H
|
---|
14 | #define MGQ_H
|
---|
15 |
|
---|
16 | #ifdef __cplusplus
|
---|
17 | extern "C" {
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | enum result_kinds {
|
---|
21 | result_docs, /* Return the documents found in last search */
|
---|
22 | result_docnums, /* Return document id numbers and weights */
|
---|
23 | result_termfreqs, /* Return terms and frequencies */
|
---|
24 | result_terms /* Return matching query terms */
|
---|
25 | };
|
---|
26 |
|
---|
27 | int mgq_ask(char *line);
|
---|
28 | int mgq_results(enum result_kinds kind,int skip, int howmany, int (*sender)(char *, int, int, float, void *), void *ptr);
|
---|
29 | int mgq_numdocs(void);
|
---|
30 | int mgq_numterms(void);
|
---|
31 |
|
---|
32 |
|
---|
33 | int is_dbcache_full (void);
|
---|
34 | int load_database (char *collection, char *mgdir, char *gensuffix, char *textsuffix);
|
---|
35 | int load_text_database (char *collection);
|
---|
36 | void close_all_databases (void);
|
---|
37 |
|
---|
38 |
|
---|
39 | #ifdef __cplusplus
|
---|
40 | }
|
---|
41 | #endif
|
---|
42 |
|
---|
43 |
|
---|
44 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.