netatalk: cnid_dbd.h Source File

netatalk 4.5.1
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 <stdbool.h>
13#include <string.h>
14#include <sys/stat.h>
15#include <unistd.h>
16
17#include <atalk/cnid.h>
18
19extern struct _cnid_module cnid_dbd_module;
20extern struct _cnid_db *cnid_dbd_open(struct cnid_open_args *args);
21extern void cnid_dbd_close(struct _cnid_db *);
22extern cnid_t cnid_dbd_add(struct _cnid_db *, const struct stat *, cnid_t,
23 const char *, size_t, cnid_t);
24extern cnid_t cnid_dbd_get(struct _cnid_db *, cnid_t, const char *, size_t);
25extern char *cnid_dbd_resolve(struct _cnid_db *, cnid_t *, void *, size_t);
26extern int cnid_dbd_getstamp(struct _cnid_db *, void *, const size_t);
27extern cnid_t cnid_dbd_lookup(struct _cnid_db *, const struct stat *, cnid_t,
28 const char *, size_t);
29extern int cnid_dbd_find(struct _cnid_db *cdb, const char *name,
30 size_t namelen,
31 void *buffer, size_t buflen,
32 bool *more_available);
33extern int cnid_dbd_update(struct _cnid_db *, cnid_t, const struct stat *,
34 cnid_t, const char *, size_t);
35extern int cnid_dbd_delete(struct _cnid_db *, const cnid_t);
36extern cnid_t cnid_dbd_rebuild_add(struct _cnid_db *, const struct stat *,
37 cnid_t, const char *, size_t, cnid_t);
38extern int cnid_dbd_wipe(struct _cnid_db *cdb);
39/* FIXME: These functions could be static in cnid_dbd.c */
40
41#endif /* include/atalk/cnid_dbd.h */
42
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:1303
cnid_dbd_find
int cnid_dbd_find(struct _cnid_db *cdb, const char *name, size_t namelen, void *buffer, size_t buflen, bool *more_available)
Backend implementation of cnid_find() for the DBD daemon backend.
Definition cnid_dbd.c:922
cnid_dbd_get
cnid_t cnid_dbd_get(struct _cnid_db *, cnid_t, const char *, size_t)
Definition cnid_dbd.c:696
cnid_dbd_open
struct _cnid_db * cnid_dbd_open(struct cnid_open_args *args)
Definition cnid_dbd.c:533
cnid_dbd_getstamp
int cnid_dbd_getstamp(struct _cnid_db *, void *, const size_t)
Definition cnid_dbd.c:825
cnid_dbd_wipe
int cnid_dbd_wipe(struct _cnid_db *cdb)
Definition cnid_dbd.c:1270
cnid_dbd_lookup
cnid_t cnid_dbd_lookup(struct _cnid_db *, const struct stat *, cnid_t, const char *, size_t)
Definition cnid_dbd.c:841
cnid_dbd_close
void cnid_dbd_close(struct _cnid_db *)
Definition cnid_dbd.c:571
cnid_dbd_delete
int cnid_dbd_delete(struct _cnid_db *, const cnid_t)
Definition cnid_dbd.c:1229
cnid_dbd_resolve
char * cnid_dbd_resolve(struct _cnid_db *, cnid_t *, void *, size_t)
Definition cnid_dbd.c:755
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:1097
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:1158
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:625
buffer
char buffer[MAXPATHLEN+2]
Definition netacnv.c:35
_cnid_db
Definition cnid.h:65
_cnid_module
Definition cnid.h:105
cnid_open_args
Definition cnid.h:97
args
static char * args[]
Definition test.c:48