Closed Skif-off closed 1 year ago
Something like this?
diff --git a/plugins/dsx/tracker_textsearch/src/Makefile b/plugins/dsx/tracker_textsearch/src/Makefile index c0e06f1..950fb70 100644 --- a/plugins/dsx/tracker_textsearch/src/Makefile +++ b/plugins/dsx/tracker_textsearch/src/Makefile @@ -1,6 +1,6 @@ CC = gcc CFLAGS = -shared -fPIC -Wl,--no-as-needed -INCLUDES = `pkg-config --cflags --libs tracker-sparql-2.0` -I../../../sdk +INCLUDES = `pkg-config --cflags --libs tracker-sparql-3.0` -I../../../sdk PLUGNAME = $(shell basename $(realpath ..)).$(shell basename $(realpath ../..)) all: diff --git a/plugins/dsx/tracker_textsearch/src/plugin.c b/plugins/dsx/tracker_textsearch/src/plugin.c index 68169ca..4d95b6f 100644 --- a/plugins/dsx/tracker_textsearch/src/plugin.c +++ b/plugins/dsx/tracker_textsearch/src/plugin.c @@ -85,7 +85,7 @@ void DCPCALL StartSearch(int PluginNr, tDsxSearchRecord* pSearchRec) else query = g_strdup_printf(notext_queryf, g_filename_to_uri(pSearchRec->StartPath, NULL, NULL), pSearchRec->FileMask); - connection = tracker_sparql_connection_get(NULL, &error); + connection = tracker_sparql_connection_new(0, NULL, NULL, NULL, &error); if (connection) {
I am not sure :)
Something like this?
I am not sure :)