/usr/share/vala/vapi/libexttextcat.vapi is in libexttextcat-dev 3.4.4-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | [CCode (cprefix = "textcat_", lower_case_cprefix = "textcat_")]
namespace TextCat {
[Compact]
[CCode (cname="candidate_t",cheader_filename = "textcat.h")]
public struct candidate {
public weak string name;
public int score;
}
[Compact]
[CCode (cname="void",cheader_filename = "textcat.h", free_function="textcat_Done")]
public class Classifier {
[CCode (cname = "textcat_Classify", cheader_filename = "textcat.h")]
public unowned string classify (string buffer, size_t size);
[CCode (cname = "textcat_ClassifyFull", cheader_filename = "textcat.h")]
public int classify_full (string buffer, size_t size, candidate* candidates);
[CCode (cname = "textcat_GetClassifyFullOutput", cheader_filename = "textcat.h")]
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 = "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, int32 value);
}
[CCode (cname="textcat_Property",cheader_filename = "textcat.h",cprefix = "TCPROP_")]
public enum Property {
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_UNKNOWN;
[CCode (cname = "textcat_Version", cheader_filename = "textcat.h")]
public static unowned string version ();
}
|