From 7e68517bdbe2d106b4ea7cbc9944a64a948daaef Mon Sep 17 00:00:00 2001 From: Philip Van Hoof Date: Sat, 28 Jan 2017 01:06:06 +0100 Subject: libtracker-data, tracker-store: domain specific ontologies --- src/tracker-store/tracker-main.vala | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/tracker-store/tracker-main.vala') diff --git a/src/tracker-store/tracker-main.vala b/src/tracker-store/tracker-main.vala index 380b6ac15..06ab62d05 100644 --- a/src/tracker-store/tracker-main.vala +++ b/src/tracker-store/tracker-main.vala @@ -41,7 +41,9 @@ License which can be viewed at: static int verbosity; static bool force_reindex; static bool readonly_mode; - + static string domain; + static string ontology_name; + const OptionEntry entries[] = { /* Daemon options */ { "version", 'V', 0, OptionArg.NONE, ref version, N_("Displays version information"), null }, @@ -50,6 +52,9 @@ License which can be viewed at: /* Indexer options */ { "force-reindex", 'r', 0, OptionArg.NONE, ref force_reindex, N_("Force a re-index of all content"), null }, { "readonly-mode", 'n', 0, OptionArg.NONE, ref readonly_mode, N_("Only allow read based actions on the database"), null }, + { "domain", 'd', 0, OptionArg.STRING, ref domain, N_("Domain to be used"), null }, + { "ontology-name", 'o', 0, OptionArg.STRING, ref ontology_name, N_("Ontology to be used"), null }, + { null } }; @@ -60,6 +65,9 @@ License which can be viewed at: message ("Store options:"); message (" Readonly mode ........................ %s", readonly_mode ? "yes" : "no"); message (" GraphUpdated Delay .................... %d", config.graphupdated_delay); + message (" Domain ........................ %s", domain); + message (" Ontology name ........................ %s", ontology_name); + } static void do_shutdown () { @@ -260,8 +268,7 @@ License which can be viewed at: bool is_first_time_index; try { - // TODO: Set domain and ontology name here - Tracker.Data.Manager.init (flags, null, null, + Tracker.Data.Manager.init (flags, domain, ontology_name, null, out is_first_time_index, true, -- cgit v1.2.1