X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fspotlight%2Fslmod_sparql.c;fp=etc%2Fspotlight%2Fslmod_sparql.c;h=21e8d382876dbfeb4082a886f7eb58e4a9ad6bbf;hp=e59db5a932f156a4742a0853aeb172ad2d8798ce;hb=371efee757ed56fd9e2f46b39fae625924d2cfc2;hpb=feb46544b3ca8dcb52f318d05f14ae7ba1b79ec8 diff --git a/etc/spotlight/slmod_sparql.c b/etc/spotlight/slmod_sparql.c index e59db5a9..21e8d382 100644 --- a/etc/spotlight/slmod_sparql.c +++ b/etc/spotlight/slmod_sparql.c @@ -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; }