netatalk  4.6.1
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
spotlight_private.h
Go to the documentation of this file.
1/*
2 * Private declarations shared between etc/afpd/spotlight.c and the
3 * pluggable Spotlight search backends. Not a public API.
4 */
5
6#ifndef SPOTLIGHT_PRIVATE_H
7#define SPOTLIGHT_PRIVATE_H
8
9#include <atalk/spotlight.h>
10
11/*
12 * Add metadata for one search result to the fm_array.
13 * Defined in etc/afpd/spotlight.c.
14 */
15extern bool add_filemeta(sl_array_t *reqinfo,
16 sl_array_t *fm_array,
17 const char *path,
18 const struct stat *sp);
19
20/*
21 * True when `path` equals `scope` or lies underneath it (component
22 * boundary aware). Defined in etc/afpd/spotlight.c.
23 */
24extern bool sl_path_in_scope(const char *path, const char *scope);
25
26/*
27 * Validate and copy a client-supplied CNID array into a query.
28 * Defined in etc/afpd/spotlight.c.
29 */
30extern int sl_createCNIDArray(slq_t *slq, const DALLOC_CTX *p);
31
32#endif /* SPOTLIGHT_PRIVATE_H */
size_t p
Definition dircache.c:306
bool add_filemeta(sl_array_t *reqinfo, sl_array_t *fm_array, const char *path, const struct stat *sp)
Add requested metadata for a query result element.
Definition spotlight.c:470
int sl_createCNIDArray(slq_t *slq, const DALLOC_CTX *p)
Definition spotlight.c:299
bool sl_path_in_scope(const char *path, const char *scope)
Definition spotlight.c:405
Definition dalloc.h:25
Definition spotlight.h:95
Definition include/atalk/directory.h:140