netatalk 4.5.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 <franklahm@gmail.com>
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
37 extern int search_cachebyname(const char *name, uuidtype_t *type,
38 unsigned char *uuid);
39 extern int add_cachebyname(const char *inname, const uuidp_t inuuid,
40 const uuidtype_t type, const unsigned long uid);
41 extern int search_cachebyuuid(uuidp_t uuidp, char **name, uuidtype_t *type);
42 extern int add_cachebyuuid(uuidp_t inuuid, const char *inname, uuidtype_t type,
43 const unsigned long uid);
44
45#endif /* LDAPCACHE_H */
uuid
uid_t uuid
search_cachebyuuid
int search_cachebyuuid(uuidp_t uuidp, char **name, uuidtype_t *type)
Definition cache.c:295
add_cachebyuuid
int add_cachebyuuid(uuidp_t inuuid, const char *inname, uuidtype_t type, const unsigned long uid)
Definition cache.c:353
search_cachebyname
int search_cachebyname(const char *name, uuidtype_t *type, unsigned char *uuid)
Search cache by name and uuid type.
Definition cache.c:233
add_cachebyname
int add_cachebyname(const char *inname, const uuidp_t inuuid, const uuidtype_t type, const unsigned long uid)
Definition cache.c:141
type
static enum op type
Definition nad_cp.c:96
uuidp_t
const unsigned char * uuidp_t
Definition uuid.h:20
uuidtype_t
uuidtype_t
Definition uuid.h:24