netatalk 4.4.3
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
cnid_dbd.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Joerg Lenneis 2003
3 * Copyright (C) Frank Lahm 2010
4 * All Rights Reserved. See COPYING.
5 */
6
7
8#ifndef _ATALK_CNID_DBD__H
9#define _ATALK_CNID_DBD__H 1
10
11#include <arpa/inet.h>
12#include <string.h>
13#include <sys/stat.h>
14#include <unistd.h>
15
16#include <atalk/cnid.h>
17
18 extern struct _cnid_module cnid_dbd_module;
19 extern struct _cnid_db *cnid_dbd_open(struct cnid_open_args *args);
20 extern void cnid_dbd_close(struct _cnid_db *);
21 extern cnid_t cnid_dbd_add(struct _cnid_db *, const struct stat *, cnid_t,
22 const char *, size_t, cnid_t);
23 extern cnid_t cnid_dbd_get(struct _cnid_db *, cnid_t, const char *, size_t);
24 extern char *cnid_dbd_resolve(struct _cnid_db *, cnid_t *, void *, size_t);
25 extern int cnid_dbd_getstamp(struct _cnid_db *, void *, const size_t);
26 extern cnid_t cnid_dbd_lookup(struct _cnid_db *, const struct stat *, cnid_t,
27 const char *, size_t);
28 extern int cnid_dbd_find(struct _cnid_db *cdb, const char *name,
29 size_t namelen,
30 void *buffer, size_t buflen);
31 extern int cnid_dbd_update(struct _cnid_db *, cnid_t, const struct stat *,
32 cnid_t, const char *, size_t);
33 extern int cnid_dbd_delete(struct _cnid_db *, const cnid_t);
34 extern cnid_t cnid_dbd_rebuild_add(struct _cnid_db *, const struct stat *,
35 cnid_t, const char *, size_t, cnid_t);
36 extern int cnid_dbd_wipe(struct _cnid_db *cdb);
37/* FIXME: These functions could be static in cnid_dbd.c */
38
39#endif /* include/atalk/cnid_dbd.h */
40
cnid_t
uint32_t cnid_t
Definition adouble.h:156
cnid.h
cnid_dbd_module
struct _cnid_module cnid_dbd_module
Definition cnid_dbd.c:1118
cnid_dbd_find
int cnid_dbd_find(struct _cnid_db *cdb, const char *name, size_t namelen, void *buffer, size_t buflen)
Definition cnid_dbd.c:854
cnid_dbd_get
cnid_t cnid_dbd_get(struct _cnid_db *, cnid_t, const char *, size_t)
Definition cnid_dbd.c:642
cnid_dbd_open
struct _cnid_db * cnid_dbd_open(struct cnid_open_args *args)
Definition cnid_dbd.c:479
cnid_dbd_getstamp
int cnid_dbd_getstamp(struct _cnid_db *, void *, const size_t)
Definition cnid_dbd.c:771
cnid_dbd_wipe
int cnid_dbd_wipe(struct _cnid_db *cdb)
Definition cnid_dbd.c:1085
cnid_dbd_lookup
cnid_t cnid_dbd_lookup(struct _cnid_db *, const struct stat *, cnid_t, const char *, size_t)
Definition cnid_dbd.c:787
cnid_dbd_close
void cnid_dbd_close(struct _cnid_db *)
Definition cnid_dbd.c:517
cnid_dbd_delete
int cnid_dbd_delete(struct _cnid_db *, const cnid_t)
Definition cnid_dbd.c:1044
cnid_dbd_resolve
char * cnid_dbd_resolve(struct _cnid_db *, cnid_t *, void *, size_t)
Definition cnid_dbd.c:701
cnid_dbd_update
int cnid_dbd_update(struct _cnid_db *, cnid_t, const struct stat *, cnid_t, const char *, size_t)
Definition cnid_dbd.c:912
cnid_dbd_rebuild_add
cnid_t cnid_dbd_rebuild_add(struct _cnid_db *, const struct stat *, cnid_t, const char *, size_t, cnid_t)
Definition cnid_dbd.c:973
cnid_dbd_add
cnid_t cnid_dbd_add(struct _cnid_db *, const struct stat *, cnid_t, const char *, size_t, cnid_t)
Definition cnid_dbd.c:571
buffer
char buffer[MAXPATHLEN+2]
Definition netacnv.c:35
_cnid_db
Definition cnid.h:55
_cnid_module
Definition cnid.h:95
cnid_open_args
Definition cnid.h:87
args
static char * args[]
Definition test.c:48