#include <atalk/byteorder.h>
#include <atalk/netatalk_conf.h>
#include <atalk/volume.h>
+#include <atalk/queue.h>
#include "spotlight.h"
-void *sl_module;
-struct sl_module_export *sl_module_export;
-
+static void *sl_module;
+static struct sl_module_export *sl_module_export;
+static q_t *sl_queries;
/* Helper functions and stuff */
static const char *neststrings[] = {
LOG(log_debug, logtype_sl, "sl_rpc_openQuery: %s", *sl_query);
+ enqueue(sl_queries, query);
+
EC_CLEANUP:
EC_EXIT;
}
{
EC_INIT;
+ sl_queries = queue_init();
+
if ((sl_module = mod_open(path)) == NULL) {
LOG(log_error, logtype_sl, "sl_mod_load(%s): failed to load: %s", path, mod_error());
EC_FAIL;