Main Page | Class List | File List | Class Members | File Members

gocr_module.h

Go to the documentation of this file.
00001 /* 00002 GOCR Copyright (C) 2000 Joerg Schulenburg Joerg.Schulenburg@physik.uni-magdeburg.de 00003 GOCR API Copyright (C) 2001 Bruno Barberi Gnecco <brunobg@sourceforge.net> 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 */ 00020 00021 #ifndef _GOCR_MODULE_H 00022 #define _GOCR_MODULE_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 /* header for modules. */ 00029 #include <stdio.h> 00030 #include "hash.h" 00031 #include "list.h" 00032 #include "unicode.h" 00033 #include "gocr_image.h" 00034 #include "gocr_char.h" 00035 #include "gocr_block.h" 00036 #include "gocr_gui.h" 00037 #include "gocr.h" 00038 00047 00051 struct gocr_modulefunctioninfo { 00052 char *function; 00053 char *description; 00054 gocr_ModuleType type; 00055 }; 00059 typedef struct gocr_modulefunctioninfo gocr_ModuleFunctionInfo; 00060 00064 struct gocr_moduleattributeinfo { 00065 char *name; 00066 char *description; 00067 }; 00071 typedef struct gocr_moduleattributeinfo gocr_ModuleAttributeInfo; 00072 00073 struct gocr_moduleinfo { 00074 char *name; 00075 char *version; 00076 char *authors; 00078 gocr_ModuleFunctionInfo *functions; 00079 gocr_ModuleAttributeInfo *attributes; 00080 }; 00084 typedef struct gocr_moduleinfo gocr_ModuleInfo; 00091 00092 extern int gocr_printArea ( gocr_Image *image, int x0, int y0, int x1, int y1 ); 00093 extern int gocr_printBlock ( gocr_Block *b ); 00094 extern int gocr_printBox ( gocr_Box *b ); 00095 extern int gocr_printBox2 ( gocr_Box *b1, gocr_Box *b2 ); 00098 #ifdef __cplusplus 00099 } 00100 #endif 00101 00102 #endif /* _GOCR_MODULE_H */

Generated on Thu Jul 29 16:43:27 2004 for GOCR API by doxygen 1.3.7