35#define SPOTLIGHT_CMD_OPEN 1
36#define SPOTLIGHT_CMD_FLAGS 2
37#define SPOTLIGHT_CMD_RPC 3
38#define SPOTLIGHT_CMD_OPEN2 4
41#define SL_ENC_LITTLE_ENDIAN 1
42#define SL_ENC_BIG_ENDIAN 2
43#define SL_ENC_UTF_16 4
145 const char *oldpath);
158 const char *oldpath);
static size_t rbuflen
Definition afpfunc_helpers.c:45
static char rbuf[rbufsize]
Definition afpfunc_helpers.c:44
static char buf[MAXPATHLEN+1]
Definition afppasswd.c:113
static AFPObj obj
Definition netatalk.c:69
void configure_spotlight_attributes(const char *attributes)
Definition sparql_map.c:109
bool sl_bool_t
Definition spotlight.h:49
int sl_unpack_len(DALLOC_CTX *query, const char *buf, size_t buf_len)
Definition spotlight_marshalling.c:1195
int sl_pack(DALLOC_CTX *query, char *buf)
Definition spotlight_marshalling.c:1091
DALLOC_CTX sl_array_t
Definition spotlight.h:45
int sl_nil_t
Definition spotlight.h:48
struct timeval sl_time_t
Definition spotlight.h:50
DALLOC_CTX sl_dict_t
Definition spotlight.h:46
int sl_index_event(const AFPObj *obj, const struct vol *vol, sl_index_event_t event, const char *path, const char *oldpath)
Definition spotlight.c:92
int sl_unpack(DALLOC_CTX *query, const char *buf)
Definition spotlight_marshalling.c:1190
sl_index_event_t
Definition spotlight.h:77
@ SL_INDEX_DIR_MOVE
Definition spotlight.h:84
@ SL_INDEX_FILE_MOVE
Definition spotlight.h:83
@ SL_INDEX_FILE_CREATE
Definition spotlight.h:81
@ SL_INDEX_FILE_DELETE
Definition spotlight.h:79
@ SL_INDEX_DIR_CREATE
Definition spotlight.h:82
@ SL_INDEX_DIR_DELETE
Definition spotlight.h:80
@ SL_INDEX_FILE_MODIFY
Definition spotlight.h:78
DALLOC_CTX sl_filemeta_t
Definition spotlight.h:47
int afp_spotlight_rpc(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
Definition spotlight.c:1330
slq_state_t
Definition spotlight.h:65
@ SLQ_STATE_NEW
Definition spotlight.h:66
@ SLQ_STATE_RUNNING
Definition spotlight.h:67
@ SLQ_STATE_CANCELLED
Definition spotlight.h:72
@ SLQ_STATE_DONE
Definition spotlight.h:70
@ SLQ_STATE_CANCEL_PENDING
Definition spotlight.h:71
@ SLQ_STATE_RESULTS
Definition spotlight.h:68
@ SLQ_STATE_FULL
Definition spotlight.h:69
@ SLQ_STATE_ERROR
Definition spotlight.h:73
Definition spotlight.h:95
uint64_t slq_ctx1
Definition spotlight.h:102
AFPObj * slq_obj
Definition spotlight.h:98
sl_array_t * slq_reqinfo
Definition spotlight.h:104
bool slq_allow_expr
Definition spotlight.h:109
uint64_t * slq_cnids
Definition spotlight.h:106
const struct vol * slq_vol
Definition spotlight.h:99
char * slq_scope
Definition spotlight.h:100
struct sl_rslts * query_results
Definition spotlight.h:111
slq_state_t slq_state
Definition spotlight.h:97
time_t slq_time
Definition spotlight.h:101
uint64_t slq_ctx2
Definition spotlight.h:103
void * slq_backend_private
Definition spotlight.h:108
const char * slq_qstring
Definition spotlight.h:105
size_t slq_cnids_num
Definition spotlight.h:107
struct list_head slq_list
Definition spotlight.h:96
uint64_t slq_result_limit
Definition spotlight.h:110
Definition include/atalk/list.h:18
Definition include/atalk/directory.h:123
Definition spotlight.h:118
int(* sbo_open_query)(slq_t *slq)
Definition spotlight.h:130
void(* sbo_close_query)(slq_t *slq)
Definition spotlight.h:138
void(* sbo_close)(AFPObj *obj)
Definition spotlight.h:125
int(* sbo_fetch_results)(slq_t *slq)
Definition spotlight.h:135
const char * sbo_name
Definition spotlight.h:119
int(* sbo_index_event)(const AFPObj *obj, const struct vol *vol, sl_index_event_t event, const char *path, const char *oldpath)
Definition spotlight.h:141
int(* sbo_init)(AFPObj *obj)
Definition spotlight.h:122
Definition spotlight.h:54
DALLOC_CTX * ca_cnids
Definition spotlight.h:57
uint32_t ca_context
Definition spotlight.h:56
uint16_t ca_unkn1
Definition spotlight.h:55
Definition spotlight.h:88
int num_results
Definition spotlight.h:89
sl_cnids_t * cnids
Definition spotlight.h:90
sl_array_t * fm_array
Definition spotlight.h:91
Definition spotlight.h:51
char sl_uuid[16]
Definition spotlight.h:52
Definition include/atalk/volume.h:33