~mhr3/dee/gir-compare-row-func

« back to all changes in this revision

Viewing changes to vapi/dee-1.0.vapi

  • Committer: Tarmac
  • Author(s): Mikkel Kamstrup Erlandsen
  • Date: 2012-01-26 13:23:46 UTC
  • mfrom: (337.1.8 icu-term-filters)
  • Revision ID: tarmac-20120126132346-o44imcsbfu36usei
Add advanced transliteration support using ICU. This is an optional dependency. Developers relying on this feature will have to check it with pkg-config on the module dee-icu-1.0 and include the header file dee-icu.h.. Fixes: https://bugs.launchpad.net/bugs/746450, https://bugs.launchpad.net/bugs/773197. Appoved by Michal Hruby.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
                [CCode (has_construct_function = false)]
49
49
                public HashIndex (Dee.Model model, Dee.Analyzer analyzer, Dee.ModelReader reader);
50
50
        }
 
51
        [CCode (cheader_filename = "dee-icu.h", free_function = "dee_icu_term_filter_destroy")]
 
52
        [Compact]
 
53
        public class ICUTermFilter {
 
54
                public string apply (string text);
 
55
                public void destroy ();
 
56
        }
51
57
        [CCode (cheader_filename = "dee.h", type_id = "dee_index_get_type ()")]
52
58
        public abstract class Index : GLib.Object {
53
59
                [CCode (has_construct_function = false)]
291
297
                public static Dee.ModelReader new_for_uint32_column (uint column);
292
298
                public string read (Dee.Model model, Dee.ModelIter iter);
293
299
        }
294
 
        [CCode (cheader_filename = "dee.h", cprefix = "DEE_TERM_MATCH_")]
 
300
        [CCode (cheader_filename = "dee.h")]
295
301
        [Flags]
296
302
        public enum TermMatchFlag {
 
303
                [CCode (cname = "DEE_TERM_MATCH_EXACT")]
297
304
                EXACT,
 
305
                [CCode (cname = "DEE_TERM_MATCH_PREFIX")]
298
306
                PREFIX
299
307
        }
300
 
        [CCode (cheader_filename = "dee.h", cprefix = "DEE_TRANSACTION_ERROR_")]
 
308
        [CCode (cheader_filename = "dee.h")]
301
309
        public enum TransactionError {
 
310
                [CCode (cname = "DEE_TRANSACTION_ERROR_CONCURRENT_MODIFICATION")]
302
311
                CONCURRENT_MODIFICATION,
 
312
                [CCode (cname = "DEE_TRANSACTION_ERROR_COMMITTED")]
303
313
                COMMITTED
304
314
        }
305
 
        [CCode (cheader_filename = "dee.h", cprefix = "DEE_SHARED_MODEL_ERROR_LEADER_")]
 
315
        [CCode (cheader_filename = "dee-icu.h")]
 
316
        public errordomain ICUError {
 
317
                [CCode (cname = "DEE_ICU_ERROR_BAD_RULE")]
 
318
                BAD_RULE,
 
319
                [CCode (cname = "DEE_ICU_ERROR_BAD_ID")]
 
320
                BAD_ID,
 
321
                [CCode (cname = "DEE_ICU_ERROR_UNKNOWN")]
 
322
                UNKNOWN;
 
323
                public static GLib.Quark quark ();
 
324
        }
 
325
        [CCode (cheader_filename = "dee.h")]
306
326
        public errordomain SharedModelError {
307
327
                [CCode (cname = "DEE_SHARED_MODEL_ERROR_LEADER_INVALIDATED")]
308
328
                LEADER_INVALIDATED