$NetBSD: patch-src_textcat.h,v 1.1 2011/02/17 13:19:17 ftigeot Exp $ --- src/textcat.h.orig 2003-05-19 12:16:31 +0000 +++ src/textcat.h @@ -40,6 +40,9 @@ #define _TEXTCAT_RESULT_UNKOWN "UNKNOWN" #define _TEXTCAT_RESULT_SHORT "SHORT" +#ifdef __cplusplus +extern "C" { +#endif /** * textcat_Init() - Initialize the text classifier. The textfile @@ -51,10 +54,19 @@ * Returns: handle on success, NULL on error. (At the moment, the * only way errors can occur, is when the library cannot read the * conffile, or one of the fingerprint files listed in it.) + * + * Replace older function (and has exacly the same behaviour) + * see below */ extern void *textcat_Init( const char *conffile ); /** + * Originaly this function had only one parameter (conffile) it has been modified since OOo must be able to load alternativ DB + * Basicaly prefix is the directory path where fingerprints are stored + */ +extern void *special_textcat_Init( const char *conffile, const char *prefix ); + +/** * textcat_Done() - Free up resources for handle */ extern void textcat_Done( void *handle ); @@ -77,4 +89,8 @@ extern char *textcat_Classify( void *han * textcat_Version() - Returns a string describing the version of this classifier. */ extern char *textcat_Version(); + +#ifdef __cplusplus +} +#endif #endif