[8948] | 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 */
|
---|
| 28 | void clear_variables();
|
---|
| 29 |
|
---|
| 30 | /* -S, -T1, -T2, -I1, -I2, args to mg_passes */
|
---|
| 31 | void add_pass (char pass_type, char pass_num);
|
---|
| 32 |
|
---|
| 33 | /* -m arg to mg_passes */
|
---|
| 34 | void set_inversion_limit(int limit);
|
---|
| 35 |
|
---|
| 36 | /* -J arg to mgpp_passes */
|
---|
| 37 | void set_document_tag(const char * tag_name);
|
---|
| 38 |
|
---|
| 39 | /* -K arg to mgpp_passes */
|
---|
| 40 | void add_level_tag(const char * tag_name);
|
---|
| 41 |
|
---|
| 42 | /* -L arg to mgpp_passes */
|
---|
| 43 | void set_index_level(const char * tag_name);
|
---|
| 44 |
|
---|
| 45 | /* -f arg to mgpp_passes */
|
---|
| 46 | void set_filename(const char * filen);
|
---|
| 47 |
|
---|
| 48 | /* The old driver method has been split into 3:
|
---|
| 49 | init_driver, process_document (called numdocs times),
|
---|
| 50 | finalise_driver.
|
---|
| 51 | The above set vars methods should all be called before init_driver.
|
---|
| 52 | */
|
---|
| 53 |
|
---|
| 54 | void init_driver ();
|
---|
| 55 |
|
---|
| 56 | void process_document(u_char *buffer, int len);
|
---|
| 57 |
|
---|
| 58 | void finalise_driver();
|
---|
| 59 |
|
---|
| 60 | int get_exit_value();
|
---|
| 61 |
|
---|
| 62 | #endif
|
---|