netatalk  4.6.1
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
spotlight_private.h File Reference
#include <atalk/spotlight.h>

Go to the source code of this file.

Functions

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.
 
bool sl_path_in_scope (const char *path, const char *scope)
 
int sl_createCNIDArray (slq_t *slq, const DALLOC_CTX *p)
 

Function Documentation

◆ add_filemeta()

bool add_filemeta ( sl_array_t *  reqinfo,
sl_array_t *  fm_array,
const char *  path,
const struct stat *  sp 
)
extern

Add requested metadata for a query result element.

This could be rewritten to something more sophisticated like querying metadata from Tracker.

If path or sp is NULL, simply add nil values for all attributes.

◆ sl_createCNIDArray()

int sl_createCNIDArray ( slq_t *  slq,
const DALLOC_CTX *  p 
)
extern

◆ sl_path_in_scope()

bool sl_path_in_scope ( const char *  path,
const char *  scope 
)
extern

True when path equals scope or lies underneath it. Component boundary aware: '/srv/afp2' does not match '/srv/afp22/x'. An empty or "/" scope matches everything.