]> arthur.barton.de Git - netatalk.git/blobdiff - etc/spotlight/slmod_sparql.c
Spotlight: new options for controlling query behaviour
[netatalk.git] / etc / spotlight / slmod_sparql.c
index e59db5a932f156a4742a0853aeb172ad2d8798ce..21e8d382876dbfeb4082a886f7eb58e4a9ad6bbf 100644 (file)
@@ -59,7 +59,8 @@ static int sl_mod_init(void *p)
 {
     EC_INIT;
     GError *error = NULL;
-    const char *msg = p;
+    AFPObj *obj = (AFPObj *)p;
+    const char *attributes;
 
     LOG(log_info, logtype_sl, "Initializing Spotlight module");
 
@@ -95,6 +96,11 @@ static int sl_mod_init(void *p)
     }
 #endif
 
+    attributes = atalk_iniparser_getstring(obj->iniconfig, INISEC_GLOBAL, "spotlight attributes", NULL);
+    if (attributes) {
+        configure_spotlight_attributes(attributes);
+    }
+
 EC_CLEANUP:
     EC_EXIT;
 }