1 /* index.h -- 2 * Created: Sat Mar 15 18:10:58 2003 by Aleksey Cheusov <vle@gmx.net> 3 * Copyright 1994-2003 Rickard E. Faith (faith@dict.org) 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License as published by the 7 * Free Software Foundation; either version 1, or (at your option) any 8 * later version. 9 * 10 * This program is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License along 16 * with this program; if not, write to the Free Software Foundation, Inc., 17 * 675 Mass Ave, Cambridge, MA 02139, USA. 18 */ 19 20 #ifndef _INDEX_H_ 21 #define _INDEX_H_ 22 23 #include "dictP.h" 24 #include "defs.h" 25 26 /* init dictIndex structure (.index file) */ 27 extern dictIndex *dict_index_open( 28 const char *filename, 29 int init_flags, 30 const dictIndex *base); 31 32 /* */ 33 extern void dict_index_close (dictIndex *i); 34 35 /* extern const char *dict_index_search ( 36 const char *word, 37 dictIndex *idx); */ 38 extern int dict_search_database_ ( 39 lst_List l, 40 const char *word, 41 const dictDatabase *database, 42 int strategy ); 43 extern int dict_search ( 44 lst_List l, 45 const char *word, 46 const dictDatabase *database, int strategy, 47 int option_mime, 48 int *extra_result, /* may be NULL */ 49 const dictPluginData **extra_data, /* may be NULL */ 50 int *extra_data_size); /* may be NULL */ 51 extern int dict_search_databases ( 52 lst_List *l, 53 lst_Position db_pos, 54 const char *databaseName, const char *word, int strategy, 55 int *db_found); 56 57 extern int utf8_mode; 58 extern int optStart_mode; 59 60 extern char global_alphabet_8bit []; 61 extern char global_alphabet_ascii []; 62 63 #endif /* _INDEX_H_ */ 64