summaryrefslogtreecommitdiff
path: root/textproc/libtextcat/files/patch-src_textcat.h
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2011-01-27 22:30:42 +0000
committerThierry Thomas <thierry@FreeBSD.org>2011-01-27 22:30:42 +0000
commit98cc84d0b0d08ef0a635471e9879668ffceee682 (patch)
tree94856f000fa4c3941207ee738a5f9b18a0d85bb3 /textproc/libtextcat/files/patch-src_textcat.h
parentmail/exim-doc-html: grab maintainership (diff)
Allow some parts to be used from LibreOffice (C++ code).
Submitted by: bapt Feature safe: yes
Notes
Notes: svn path=/head/; revision=268309
Diffstat (limited to 'textproc/libtextcat/files/patch-src_textcat.h')
-rw-r--r--textproc/libtextcat/files/patch-src_textcat.h35
1 files changed, 28 insertions, 7 deletions
diff --git a/textproc/libtextcat/files/patch-src_textcat.h b/textproc/libtextcat/files/patch-src_textcat.h
index 9c49ac8672dc..d7a6c4892ea4 100644
--- a/textproc/libtextcat/files/patch-src_textcat.h
+++ b/textproc/libtextcat/files/patch-src_textcat.h
@@ -1,6 +1,16 @@
---- src/textcat.h.orig Mon May 19 14:16:31 2003
-+++ src/textcat.h Thu Aug 23 22:47:07 2007
-@@ -51,8 +51,17 @@
+--- ./src/textcat.h.orig 2003-05-19 14:16:31.000000000 +0200
++++ ./src/textcat.h 2010-12-21 16:18:55.000000000 +0100
+@@ -39,6 +39,9 @@
+
+ #define _TEXTCAT_RESULT_UNKOWN "UNKNOWN"
+ #define _TEXTCAT_RESULT_SHORT "SHORT"
++#ifdef __cplusplus
++extern "C" {
++#endif
+
+
+ /**
+@@ -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.)
@@ -9,12 +19,23 @@
+ * 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 @@
+ * textcat_Version() - Returns a string describing the version of this classifier.
+ */
+ extern char *textcat_Version();
++
++#ifdef __cplusplus
++}
++#endif
+ #endif