summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiulio Paci <giuliopaci@gmail.com>2013-05-29 04:55:07 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-05-29 10:47:19 +0100
commit983edc373cc885b1901570b6b731439175e538a1 (patch)
tree5de344a48264223099843b0d25475d94c8ae1229
parent6f083ae232014be43064b026f43af3040e6cca63 (diff)
Updated libexttextcat.vapi.
(cherry picked from commit d7ac2c6d5b0b0cee16bf5cab04e88b1819a589ac)
-rw-r--r--libexttextcat.vapi13
1 files changed, 8 insertions, 5 deletions
diff --git a/libexttextcat.vapi b/libexttextcat.vapi
index 048f5d7..e699754 100644
--- a/libexttextcat.vapi
+++ b/libexttextcat.vapi
@@ -17,20 +17,23 @@ namespace TextCat {
public unowned candidate* get_classify_full_output ();
[CCode (cname = "textcat_ReleaseClassifyFullOutput", cheader_filename = "textcat.h")]
public void release_classify_full_output (candidate* candidates);
- [CCode (cname = "textcat_Init", cheader_filename = "textcat.h")]
- public Classifier (string conffile);
+ [CCode (cname = "special_textcat_Init", cheader_filename = "textcat.h")]
+ public Classifier (string conffile, string prefix = TEXTCAT_DEFAULT_FINGERPRINTS_PATH);
[CCode (cname = "textcat_SetProperty", cheader_filename = "textcat.h")]
- public int set_property (Property property, int4 value);
+ public int set_property (Property property, int32 value);
}
[CCode (cname="textcat_Property",cheader_filename = "textcat.h",cprefix = "TCPROP_")]
public enum Property {
- UTF8AWARE;
+ UTF8AWARE,
+ MINIMUM_DOCUMENT_SIZE;
}
+ [CCode (cheader_filename = "constants.h", cname = "DEFAULT_FINGERPRINTS_PATH")]
+ public const string TEXTCAT_DEFAULT_FINGERPRINTS_PATH;
[CCode (cheader_filename = "textcat.h")]
public const int TEXTCAT_RESULT_SHORT;
[CCode (cheader_filename = "textcat.h")]
- public const int TEXTCAT_RESULT_UNKOWN;
+ public const int TEXTCAT_RESULT_UNKNOWN;
[CCode (cname = "textcat_Version", cheader_filename = "textcat.h")]
public static unowned string version ();
}