#define MAX_SL_RESULTS 20
static TrackerSparqlConnection *connection;
+#if 0
static TrackerMinerManager *manager;
+#endif
static char *tracker_to_unix_path(const char *uri)
{
become_root();
connection = tracker_sparql_connection_get(NULL, &error);
+#if 0 /* this may hang, so disable it as we don't use the miner anyway */
manager = tracker_miner_manager_new_full(FALSE, &error);
+#endif
unbecome_root();
if (!connection) {
EC_FAIL;
}
+#if 0
if (!manager) {
LOG(log_error, logtype_sl, "Couldn't connect to Tracker miner");
g_clear_error(&error);
EC_FAIL;
}
+#endif
EC_CLEANUP:
EC_EXIT;
*/
return 0;
+#if 0
#ifdef HAVE_TRACKER_MINER
EC_INIT;
const char *f = p;
EC_EXIT;
#else
return 0;
-#endif
+#endif /* HAVE_TRACKER_MINER */
+#endif /* 0 */
}
struct sl_module_export sl_mod = {