netatalk
4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
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
*/
15
extern
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
*/
24
extern
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
*/
30
extern
int
sl_createCNIDArray
(
slq_t
*slq,
const
DALLOC_CTX
*p);
31
32
#endif
/* SPOTLIGHT_PRIVATE_H */
add_filemeta
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
sl_createCNIDArray
int sl_createCNIDArray(slq_t *slq, const DALLOC_CTX *p)
Definition
spotlight.c:299
sl_path_in_scope
bool sl_path_in_scope(const char *path, const char *scope)
Definition
spotlight.c:405
spotlight.h
sl_array_t
DALLOC_CTX sl_array_t
Definition
spotlight.h:45
slq_t
struct _slq_t slq_t
DALLOC_CTX
Definition
dalloc.h:25
path
Definition
include/atalk/directory.h:140
etc
spotlight
spotlight_private.h
Generated by
1.18.0