netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
cache.h File Reference

Go to the source code of this file.

Macros

#define CACHESECONDS   600

Functions

int search_cachebyname (const char *name, uuidtype_t *type, unsigned char *uuid)
int add_cachebyname (const char *inname, const uuidp_t inuuid, const uuidtype_t type, const unsigned long uid)
int search_cachebyuuid (uuidp_t uuidp, char **name, uuidtype_t *type)
int add_cachebyuuid (uuidp_t inuuid, const char *inname, uuidtype_t type, const unsigned long uid)

Macro Definition Documentation

◆ CACHESECONDS

#define CACHESECONDS   600

Function Documentation

◆ add_cachebyname()

int add_cachebyname ( const char * inname,
const uuidp_t inuuid,
const uuidtype_t type,
const unsigned long uid )
extern

◆ add_cachebyuuid()

int add_cachebyuuid ( uuidp_t inuuid,
const char * inname,
uuidtype_t type,
const unsigned long uid )
extern

◆ search_cachebyname()

int search_cachebyname ( const char * name,
uuidtype_t * type,
unsigned char * uuid )
extern

Search cache by name and uuid type

Parameters
name(r) name to search
type(rw) type (user or group) of name, returns found type here which might mark it as a negative entry
uuid(w) found uuid is returned here
Returns
0 on success, entry found -1 no entry found

◆ search_cachebyuuid()

int search_cachebyuuid ( uuidp_t uuidp,
char ** name,
uuidtype_t * type )
extern