]> arthur.barton.de Git - netatalk.git/blobdiff - etc/spotlight/spotlight_rawquery_lexer.l
Spotlight: use async Tracker SPARQL API
[netatalk.git] / etc / spotlight / spotlight_rawquery_lexer.l
index 80ce17fd7a3699455800a3c1bbec8ed0fe9ab967..db7f40cd82f673321d33fe2edc4a6f5f65131cce 100644 (file)
@@ -9,7 +9,10 @@
 #include <gio/gio.h>
 #include <atalk/talloc.h>
 #include <atalk/spotlight.h>
-#include "slmod_sparql_parser.h"
+#ifdef HAVE_TRACKER
+#include "sparql_parser.h"
+#define SLQ_VAR ssp_slq
+#endif
 %}
 
 ASC     [a-zA-Z0-9_\*\:\-\.]
@@ -36,6 +39,6 @@ true                                  {yylval.bval = true; return BOOL;}
 \<                                    return LT;
 \>                                    return GT;
 \,                                    return COMMA;
-{UANY}+                               {yylval.sval = talloc_strdup(ssp_slq, yytext); return WORD;}
+{UANY}+                               {yylval.sval = talloc_strdup(SLQ_VAR, yytext); return WORD;}
 [ \t\n]                               /* ignore */
 %%