X-Git-Url: https://arthur.barton.de/gitweb/?p=netatalk.git;a=blobdiff_plain;f=include%2Fatalk%2Fspotlight.h;h=bafa52f53b83d9a88f714a0c5dddb8ffa3125992;hp=0ca8a24edd44467d6245c1863d32f65247992114;hb=371efee757ed56fd9e2f46b39fae625924d2cfc2;hpb=feb46544b3ca8dcb52f318d05f14ae7ba1b79ec8 diff --git a/include/atalk/spotlight.h b/include/atalk/spotlight.h index 0ca8a24e..bafa52f5 100644 --- a/include/atalk/spotlight.h +++ b/include/atalk/spotlight.h @@ -43,7 +43,7 @@ struct sl_module_export { int (*sl_mod_index_file) (const void *); }; -extern int sl_mod_load(const char *path); +extern int sl_mod_load(AFPObj *obj); extern void sl_index_file(const char *path); /************************************************************************************************** @@ -105,6 +105,8 @@ typedef struct _slq_t { size_t slq_cnids_num; /* Size of slq_cnids array */ const char *slq_path; /* Path to file or dir, used in fetchAttributes */ void *slq_tracker_cursor; /* Tracker SPARQL query result cursor */ + bool slq_allow_expr; /* Whether to allow logic expressions */ + uint64_t slq_result_limit; /* Whether to LIMIT SPARQL results, default of 0 means no limit */ } slq_t; /************************************************************************************************** @@ -114,5 +116,6 @@ typedef struct _slq_t { extern int afp_spotlight_rpc(AFPObj *obj, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t *rbuflen); extern int sl_pack(DALLOC_CTX *query, char *buf); extern int sl_unpack(DALLOC_CTX *query, const char *buf); +extern void configure_spotlight_attributes(const char *attributes); #endif /* SPOTLIGHT_H */