netatalk  4.4.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
cache.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2008,2009 Frank Lahm <[email protected]>
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 */
14
15#ifndef LDAPCACHE_H
16#define LDAPCACHE_H
17
30
31#define CACHESECONDS 600
32
33/********************************************************
34 * Interface
35 ********************************************************/
36
37extern int search_cachebyname(const char *name, uuidtype_t *type,
38 unsigned char *uuid);
39extern int add_cachebyname(const char *inname, const uuidp_t inuuid,
40 const uuidtype_t type, const unsigned long uid);
41extern int search_cachebyuuid(uuidp_t uuidp, char **name, uuidtype_t *type);
42extern int add_cachebyuuid(uuidp_t inuuid, const char *inname, uuidtype_t type,
43 const unsigned long uid);
44
45#endif /* LDAPCACHE_H */
uid_t uuid
int search_cachebyuuid(uuidp_t uuidp, char **name, uuidtype_t *type)
Definition cache.c:295
int add_cachebyuuid(uuidp_t inuuid, const char *inname, uuidtype_t type, const unsigned long uid)
Definition cache.c:353
int search_cachebyname(const char *name, uuidtype_t *type, unsigned char *uuid)
Search cache by name and uuid type.
Definition cache.c:233
int add_cachebyname(const char *inname, const uuidp_t inuuid, const uuidtype_t type, const unsigned long uid)
Definition cache.c:141
static enum op type
Definition nad_cp.c:96
const unsigned char * uuidp_t
Definition uuid.h:20
uuidtype_t
Definition uuid.h:24