source: main/tags/2.80/indexers/mgpp/text/mgpp_passes_4jni.h@ 24540

Last change on this file since 24540 was 8948, checked in by kjdon, 19 years ago

first stab at jni version of mgpp_passes

  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 KB
Line 
1/**************************************************************************
2 *
3 * mgpp_passes_4jni.h -- modified mgpp_passes for use from jni
4 * Copyright (C) 2004 New Zealand Digital Library, http://www.nzdl.org
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 *
20 * $Id: mgpp_passes_4jni.h 8948 2005-02-01 23:13:07Z kjdon $
21 *
22 **************************************************************************/
23#ifndef H_MGPP_PASSES_4JNI
24#define H_MGPP_PASSES_4JNI
25
26
27/* clear all the settings from one mgpp_passes run to the next */
28void clear_variables();
29
30/* -S, -T1, -T2, -I1, -I2, args to mg_passes */
31void add_pass (char pass_type, char pass_num);
32
33/* -m arg to mg_passes */
34void set_inversion_limit(int limit);
35
36/* -J arg to mgpp_passes */
37void set_document_tag(const char * tag_name);
38
39/* -K arg to mgpp_passes */
40void add_level_tag(const char * tag_name);
41
42/* -L arg to mgpp_passes */
43void set_index_level(const char * tag_name);
44
45/* -f arg to mgpp_passes */
46void set_filename(const char * filen);
47
48/* The old driver method has been split into 3:
49init_driver, process_document (called numdocs times),
50finalise_driver.
51The above set vars methods should all be called before init_driver.
52*/
53
54void init_driver ();
55
56void process_document(u_char *buffer, int len);
57
58void finalise_driver();
59
60int get_exit_value();
61
62#endif
Note: See TracBrowser for help on using the repository browser.