- struct list_head slq_list; /* queries are stored in a list */
- slq_state_t slq_state; /* State */
- AFPObj *slq_obj; /* global AFPObj handle */
- const struct vol *slq_vol; /* volume handle */
- DALLOC_CTX *slq_reply; /* reply handle */
- time_t slq_time; /* timestamp where we received this query */
- uint64_t slq_ctx1; /* client context 1 */
- uint64_t slq_ctx2; /* client context 2 */
- sl_array_t *slq_reqinfo; /* array with requested metadata */
- const char *slq_qstring; /* the Spotlight query string */
- uint64_t *slq_cnids; /* Pointer to array with CNIDs to which a query applies */
- size_t slq_cnids_num; /* Size of slq_cnids array */
-#ifdef HAVE_TRACKER_SPARQL
- void *slq_tracker_cursor; /* Tracker SPARQL query result cursor */
-#endif
-#ifdef HAVE_TRACKER_RDF
- char *slq_trackerquery; /* query string*/
- int slq_service; /* Tracker service */
- int slq_offset; /* search offset */
+ struct list_head slq_list; /* queries are stored in a list */
+ slq_state_t slq_state; /* State */
+ AFPObj *slq_obj; /* global AFPObj handle */
+ const struct vol *slq_vol; /* volume handle */
+ time_t slq_time; /* timestamp received query */
+ uint64_t slq_ctx1; /* client context 1 */
+ uint64_t slq_ctx2; /* client context 2 */
+ sl_array_t *slq_reqinfo; /* array with requested metadata */
+ const char *slq_qstring; /* the Spotlight query string */
+ uint64_t *slq_cnids; /* Pointer to array with CNIDs */
+ size_t slq_cnids_num; /* Size of slq_cnids array */
+ void *tracker_cursor; /* Tracker SPARQL cursor */
+ bool slq_allow_expr; /* Whether to allow expressions */
+ uint64_t slq_result_limit; /* Whether to LIMIT SPARQL results */
+ struct sl_rslts *query_results; /* query results */
+#ifdef HAVE_TRACKER
+ GCancellable *cancellable;