From: Roberto Majadas Date: Fri, 17 Oct 2008 08:48:36 +0000 (+0000) Subject: Add tracker indexer bindings X-Git-Tag: VALA_0_4_0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2749a22dd200fc90145c98219c9a3a6f28b293a;p=thirdparty%2Fvala.git Add tracker indexer bindings 2008-10-17 Roberto Majadas * vapi/tracker-indexer-module-1.0.vapi: Add tracker indexer bindings svn path=/trunk/; revision=1839 --- diff --git a/ChangeLog b/ChangeLog index 8e06de397..aeaf6d7a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-10-17 Roberto Majadas + + * vapi/tracker-indexer-module-1.0.vapi: Add tracker indexer bindings + 2008-10-15 Jürg Billeter * gobject/valaccodememberaccessbinding.vala: diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 4d39270cd..2035617e0 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -124,6 +124,7 @@ dist_vapi_DATA = \ sqlite3.vapi \ taglib_c.vapi \ tiff.vapi \ + tracker-indexer-module-1.0.vapi \ unique-1.0.deps \ unique-1.0.vapi \ vala-1.0.vapi \ diff --git a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala new file mode 100644 index 000000000..7f9752f4b --- /dev/null +++ b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0-custom.vala @@ -0,0 +1,184 @@ +namespace Tracker { + + namespace Ontology { + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static void field_add (Tracker.Field field); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string field_get_display_name (Tracker.Field field); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string field_get_id (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool field_is_child_of (string child, string parent); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak Tracker.Field get_field_by_id (int id); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak Tracker.Field get_field_by_name (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_field_name_by_service_name (Tracker.Field field, string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak GLib.SList get_field_names_registered (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_service_by_id (int id); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_service_by_mime (string mime); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak Tracker.Service get_service_by_name (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static Tracker.DBType get_service_db_by_name (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static int get_service_id_by_name (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak GLib.SList get_service_names_registered (); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_service_parent (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_service_parent_by_id (int id); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static int get_service_parent_id_by_id (int id); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static void init (); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static void service_add (Tracker.Service service, GLib.SList mimes, GLib.SList mime_prefixes); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static int service_get_key_metadata (string service_str, string meta_name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_get_show_directories (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_get_show_files (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_has_embedded (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_has_metadata (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_has_text (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_has_thumbnails (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_is_valid (string service_str); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static void shutdown (); + + } + + namespace ModuleConfig{ + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak string get_description (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static bool get_enabled (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_ignored_directories (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_ignored_directory_patterns (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_ignored_file_patterns (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_ignored_files (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_index_file_patterns (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_index_files (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_index_mime_types (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak string get_index_service (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_modules (); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_monitor_directories (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_monitor_recurse_directories (string name); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static bool init (); + + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static void shutdown (); + + } + + namespace Module { + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public delegate void FileFreeDataFunc (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate void* FileGetDataFunc (string path); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak Tracker.Metadata FileGetMetadataFunc (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak string FileGetServiceTypeFunc (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak string FileGetText (Tracker.File path); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate void FileGetUriFunc (Tracker.File file, string dirname, string basename); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate bool FileIterContents (Tracker.File path); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak string GetDirectoriesFunc (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak string GetNameFunc (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate void Init (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate void Shutdown (); + + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void file_free_data (void* file_data); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void* file_get_data (string path); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static weak Tracker.Metadata file_get_metadata (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static weak string file_get_service_type (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static weak string file_get_text (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void file_get_uri (Tracker.File file, string dirname, string basename); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static bool file_iter_contents (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static weak string get_name (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void init (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void shutdown (); + } + +} diff --git a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.defines b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.defines new file mode 100644 index 000000000..300b5b859 --- /dev/null +++ b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.defines @@ -0,0 +1 @@ +-DTRACKER_ENABLE_INTERNALS diff --git a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.deps b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.deps new file mode 100644 index 000000000..e69de29bb diff --git a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.files b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.files new file mode 100644 index 000000000..899729a78 --- /dev/null +++ b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.files @@ -0,0 +1,6 @@ +include/tracker-1.0/ +lib/tracker/libtracker-indexer.so +lib/tracker/libstemmer.so +lib/tracker/libtracker-common.so +lib/tracker/libtracker-db.so + diff --git a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.gi b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.gi new file mode 100644 index 000000000..e43ed6d9e --- /dev/null +++ b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.gi @@ -0,0 +1,1647 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.metadata b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.metadata new file mode 100644 index 000000000..44944b935 --- /dev/null +++ b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.metadata @@ -0,0 +1,8 @@ +Tracker cheader_filename="tracker-1.0/libtracker-common/tracker-common.h" + +TrackerMetadata cheader_filename="tracker-1.0/libtracker-indexer/tracker-metadata.h" + +tracker_ontology_* hidden="1" +tracker_module_config_* hidden="1" +TrackerModule* hidden="1" +tracker_module_* hidden="1" diff --git a/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.namespace b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.namespace new file mode 100644 index 000000000..7bd7aa09b --- /dev/null +++ b/vapi/packages/tracker-indexer-module-1.0/tracker-indexer-module-1.0.namespace @@ -0,0 +1 @@ +Tracker diff --git a/vapi/tracker-indexer-module-1.0.vapi b/vapi/tracker-indexer-module-1.0.vapi new file mode 100644 index 000000000..b6b6d6897 --- /dev/null +++ b/vapi/tracker-indexer-module-1.0.vapi @@ -0,0 +1,460 @@ +/* tracker-indexer-module-1.0.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "Tracker", lower_case_cprefix = "tracker_")] +namespace Tracker { + [CCode (cprefix = "TrackerOntology", lower_case_cprefix = "tracker_ontology_")] + namespace Ontology { + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static void field_add (Tracker.Field field); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string field_get_display_name (Tracker.Field field); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string field_get_id (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool field_is_child_of (string child, string parent); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak Tracker.Field get_field_by_id (int id); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak Tracker.Field get_field_by_name (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_field_name_by_service_name (Tracker.Field field, string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak GLib.SList get_field_names_registered (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_service_by_id (int id); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_service_by_mime (string mime); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak Tracker.Service get_service_by_name (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static Tracker.DBType get_service_db_by_name (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static int get_service_id_by_name (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak GLib.SList get_service_names_registered (); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_service_parent (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static weak string get_service_parent_by_id (int id); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static int get_service_parent_id_by_id (int id); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static void init (); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static void service_add (Tracker.Service service, GLib.SList mimes, GLib.SList mime_prefixes); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static int service_get_key_metadata (string service_str, string meta_name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_get_show_directories (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_get_show_files (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_has_embedded (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_has_metadata (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_has_text (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_has_thumbnails (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static bool service_is_valid (string service_str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-ontology.h")] + public static void shutdown (); + } + [CCode (cprefix = "TrackerModuleConfig", lower_case_cprefix = "tracker_module_config_")] + namespace ModuleConfig { + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak string get_description (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static bool get_enabled (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_ignored_directories (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_ignored_directory_patterns (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_ignored_file_patterns (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_ignored_files (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_index_file_patterns (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_index_files (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_index_mime_types (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak string get_index_service (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_modules (); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_monitor_directories (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static weak GLib.List get_monitor_recurse_directories (string name); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static bool init (); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-module-config.h")] + public static void shutdown (); + } + [CCode (cprefix = "TrackerModule", lower_case_cprefix = "tracker_module_")] + namespace Module { + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public delegate void FileFreeDataFunc (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate void* FileGetDataFunc (string path); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak Tracker.Metadata FileGetMetadataFunc (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak string FileGetServiceTypeFunc (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak string FileGetText (Tracker.File path); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate void FileGetUriFunc (Tracker.File file, string dirname, string basename); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate bool FileIterContents (Tracker.File path); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak string GetDirectoriesFunc (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate weak string GetNameFunc (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate void Init (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static delegate void Shutdown (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void file_free_data (void* file_data); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void* file_get_data (string path); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static weak Tracker.Metadata file_get_metadata (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static weak string file_get_service_type (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static weak string file_get_text (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void file_get_uri (Tracker.File file, string dirname, string basename); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static bool file_iter_contents (Tracker.File file); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static weak string get_name (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void init (); + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-module.h")] + public static void shutdown (); + } + [CCode (cprefix = "TRACKER_DB_TYPE_", cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public enum DBType { + UNKNOWN, + DATA, + INDEX, + COMMON, + CONTENT, + EMAIL, + FILES, + XESAM, + CACHE, + USER + } + [CCode (cprefix = "TRACKER_FIELD_TYPE_", cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public enum FieldType { + KEYWORD, + INDEX, + FULLTEXT, + STRING, + INTEGER, + DOUBLE, + DATE, + BLOB, + STRUCT, + LINK + } + [Compact] + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public class File { + public weak string path; + public void* data; + public static void close (int fd, bool no_longer_needed); + public static weak string get_mime_type (string uri); + public static int get_mtime (string uri); + public static void get_path_and_name (string uri, string path, string name); + public static uint get_size (string uri); + public static bool is_directory (string uri); + public static bool is_indexable (string uri); + public static bool is_valid (string uri); + public static int open (string uri, bool readahead); + public static bool unlink (string uri); + } + [Compact] + [CCode (cheader_filename = "tracker-1.0/libtracker-indexer/tracker-metadata.h")] + public class Metadata { + public void @foreach (Tracker.MetadataForeach func); + public void insert (string field_name, string value); + public void insert_multiple_values (string field_name, GLib.List list); + public weak string lookup (string field_name); + public weak GLib.List lookup_multiple_values (string field_name); + public Metadata (); + public static weak Tracker.Metadata utils_get_data (string path); + public static weak string utils_get_text (string path); + } + [Compact] + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public class Parser { + public bool is_stop_word (string word); + public Parser (Tracker.Language language, int max_word_length, int min_word_length); + public weak string next (int position, int byte_offset_start, int byte_offset_end, bool new_paragraph, bool stop_word, int word_length); + public weak string process_word (string word, int length, bool do_strip); + public void reset (string txt, int txt_size, bool delimit_words, bool enable_stemmer, bool enable_stop_words, bool parse_reserved_words); + public void set_posititon (int position); + public static weak GLib.HashTable text (GLib.HashTable word_table, string txt, int weight, Tracker.Language language, int max_words_to_index, int max_word_length, int min_word_length, bool filter_words, bool delimit_words); + public static weak GLib.HashTable text_fast (GLib.HashTable word_table, string txt, int weight); + public static weak string text_into_array (string text, Tracker.Language language, int max_word_length, int min_word_length); + public static weak string text_to_string (string txt, Tracker.Language language, int max_word_length, int min_word_length, bool filter_words, bool filter_numbers, bool delimit); + } + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public class Config : GLib.Object { + public void add_crawl_directory_roots (string roots); + public void add_disabled_modules (string modules); + public void add_no_watch_directory_roots (string roots); + public void add_watch_directory_roots (string roots); + public weak GLib.SList get_crawl_directory_roots (); + public bool get_disable_indexing_on_battery (); + public bool get_disable_indexing_on_battery_init (); + public weak GLib.SList get_disabled_modules (); + public bool get_enable_content_indexing (); + public bool get_enable_indexing (); + public bool get_enable_stemmer (); + public bool get_enable_thumbnails (); + public bool get_enable_watches (); + public bool get_enable_xesam (); + public bool get_fast_merges (); + public bool get_index_mounted_directories (); + public bool get_index_removable_devices (); + public int get_initial_sleep (); + public weak string get_language (); + public int get_low_disk_space_limit (); + public bool get_low_memory_mode (); + public int get_max_bucket_count (); + public int get_max_text_to_index (); + public int get_max_word_length (); + public int get_max_words_to_index (); + public int get_min_bucket_count (); + public int get_min_word_length (); + public bool get_nfs_locking (); + public weak GLib.SList get_no_index_file_types (); + public weak GLib.SList get_no_watch_directory_roots (); + public int get_throttle (); + public int get_verbosity (); + public weak GLib.SList get_watch_directory_roots (); + public Config (); + public void remove_disabled_modules (string module); + public void set_disable_indexing_on_battery (bool value); + public void set_disable_indexing_on_battery_init (bool value); + public void set_enable_content_indexing (bool value); + public void set_enable_indexing (bool value); + public void set_enable_stemmer (bool value); + public void set_enable_thumbnails (bool value); + public void set_enable_watches (bool value); + public void set_enable_xesam (bool value); + public void set_fast_merges (bool value); + public void set_index_mounted_directories (bool value); + public void set_index_removable_devices (bool value); + public void set_initial_sleep (int value); + public void set_language (string value); + public void set_low_disk_space_limit (int value); + public void set_low_memory_mode (bool value); + public void set_max_bucket_count (int value); + public void set_max_text_to_index (int value); + public void set_max_word_length (int value); + public void set_max_words_to_index (int value); + public void set_min_bucket_count (int value); + public void set_min_word_length (int value); + public void set_nfs_locking (bool value); + public void set_throttle (int value); + public void set_verbosity (int value); + public void* crawl_directory_roots { get; } + public bool disable_indexing_on_battery { get; set construct; } + public bool disable_indexing_on_battery_init { get; set construct; } + public void* disabled_modules { get; } + public bool enable_content_indexing { get; set construct; } + public bool enable_indexing { get; set construct; } + public bool enable_stemmer { get; set construct; } + public bool enable_thumbnails { get; set construct; } + public bool enable_watches { get; set construct; } + public bool enable_xesam { get; set construct; } + public bool fast_merges { get; set construct; } + public bool index_mounted_directories { get; set construct; } + public bool index_removable_devices { get; set construct; } + public int initial_sleep { get; set construct; } + public string language { get; set construct; } + public int low_disk_space_limit { get; set construct; } + public bool low_memory_mode { get; set construct; } + public int max_bucket_count { get; set construct; } + public int max_text_to_index { get; set construct; } + public int max_word_length { get; set construct; } + public int max_words_to_index { get; set construct; } + public int min_bucket_count { get; set construct; } + public int min_word_length { get; set construct; } + public bool nfs_locking { get; set construct; } + public void* no_index_file_types { get; } + public void* no_watch_directory_roots { get; } + public int throttle { get; set construct; } + public int verbosity { get; set construct; } + public void* watch_directory_roots { get; } + } + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public class Field : GLib.Object { + public void append_child_id (string id); + public weak GLib.SList get_child_ids (); + public Tracker.FieldType get_data_type (); + public bool get_delimited (); + public bool get_embedded (); + public weak string get_field_name (); + public bool get_filtered (); + public weak string get_id (); + public bool get_multiple_values (); + public weak string get_name (); + public bool get_store_metadata (); + public int get_weight (); + public Field (); + public void set_child_ids (GLib.SList value); + public void set_data_type (Tracker.FieldType value); + public void set_delimited (bool value); + public void set_embedded (bool value); + public void set_field_name (string value); + public void set_filtered (bool value); + public void set_id (string value); + public void set_multiple_values (bool value); + public void set_name (string value); + public void set_store_metadata (bool value); + public void set_weight (int value); + public static weak string type_to_string (Tracker.FieldType fieldtype); + public void* child_ids { get; set; } + public Tracker.FieldType data_type { get; set; } + public bool delimited { get; set; } + public bool embedded { get; set; } + public string field_name { get; set; } + public bool filtered { get; set; } + public string id { get; set; } + public bool multiple_values { get; set; } + public string name { get; set; } + public bool store_metadata { get; set; } + public int weight { get; set; } + } + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public class Language : GLib.Object { + public static bool check_exists (string language_code); + public weak Tracker.Config get_config (); + public static weak string get_default_code (); + public weak GLib.HashTable get_stop_words (); + public Language (Tracker.Config language); + public void set_config (Tracker.Config config); + public weak string stem_word (string word, int word_length); + public Tracker.Config config { get; set; } + public GLib.HashTable stop_words { get; } + } + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public class Service : GLib.Object { + public weak string get_content_metadata (); + public Tracker.DBType get_db_type (); + public bool get_embedded (); + public bool get_enabled (); + public bool get_has_full_text (); + public bool get_has_metadata (); + public bool get_has_thumbs (); + public int get_id (); + public weak GLib.SList get_key_metadata (); + public weak string get_name (); + public weak string get_parent (); + public weak string get_property_prefix (); + public bool get_show_service_directories (); + public bool get_show_service_files (); + public Service (); + public void set_content_metadata (string value); + public void set_db_type (Tracker.DBType value); + public void set_embedded (bool value); + public void set_enabled (bool value); + public void set_has_full_text (bool value); + public void set_has_metadata (bool value); + public void set_has_thumbs (bool value); + public void set_id (int value); + public void set_key_metadata (GLib.SList value); + public void set_name (string value); + public void set_parent (string value); + public void set_property_prefix (string value); + public void set_show_service_directories (bool value); + public void set_show_service_files (bool value); + public string content_metadata { get; set; } + public Tracker.DBType db_type { get; set; } + public bool embedded { get; set; } + public bool enabled { get; set; } + public bool has_full_text { get; set; } + public bool has_metadata { get; set; } + public bool has_thumbs { get; set; } + public int id { get; set; } + public void* key_metadata { get; set; } + public string name { get; set; } + public string parent { get; set; } + public string property_prefix { get; set; } + public bool show_service_directories { get; set; } + public bool show_service_files { get; set; } + } + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public delegate void MetadataForeach (Tracker.Field field, void* value); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string date_format (string time_string); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string date_to_string (ulong date_time); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string date_to_time_string (string date_string); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static bool env_check_xdg_dirs (); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string escape_string (string @in); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string gint32_to_string (int i); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string gint_to_string (int i); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string glong_to_string (long i); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak GLib.SList gslist_copy_with_string_data (GLib.SList list); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string gslist_to_string_list (GLib.SList list); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string guint32_to_string (uint i); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string guint_to_string (uint i); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static bool is_empty_string (string str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string path_evaluate_name (string uri); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static void path_hash_table_filter_duplicates (GLib.HashTable roots); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static bool path_is_in_path (string path, string in_path); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak GLib.SList path_list_filter_duplicates (GLib.SList roots); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static void path_remove (string uri); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string seconds_estimate_to_string (double seconds_elapsed, bool short_string, uint items_done, uint items_remaining); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string seconds_to_string (double seconds_elapsed, bool short_string); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string string_boolean_to_string_gint (string value); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static int string_in_string_list (string str, string strv); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak GLib.SList string_list_to_gslist (string strv, ulong length); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string string_list_to_string (string strv, ulong length, char sep); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string string_remove (string haystack, string needle); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string string_replace (string haystack, string needle, string replacement); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static ulong string_to_date (string time_string); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static weak string string_to_string_list (string str); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static bool string_to_uint (string s, uint ret); + [CCode (cheader_filename = "tracker-1.0/libtracker-common/tracker-common.h")] + public static void throttle (Tracker.Config config, int multiplier); +}