netatalk 4.4.3
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
cnid_last.h
Go to the documentation of this file.
1/*
2 * interface for database access to cnids. i do it this way to abstract
3 * things a bit in case we want to change the underlying implementation.
4 */
5
6#ifndef _ATALK_CNID_LAST__H
7#define _ATALK_CNID_LAST__H 1
8
9#include <string.h>
10#include <sys/stat.h>
11#include <unistd.h>
12
13#include <atalk/cnid.h>
14
15 struct _cnid_last_private {
16 cnid_t last_did;
17};
18
19 extern struct _cnid_module cnid_last_module;
20 extern struct _cnid_db *cnid_last_open(struct cnid_open_args *args);
21 extern void cnid_last_close(struct _cnid_db *);
22 extern cnid_t cnid_last_add(struct _cnid_db *, const struct stat *, cnid_t,
23 const char *, size_t, cnid_t);
24 extern cnid_t cnid_last_get(struct _cnid_db *, cnid_t, const char *, size_t);
25 extern char *cnid_last_resolve(struct _cnid_db *, cnid_t *, void *, size_t);
26 extern cnid_t cnid_last_lookup(struct _cnid_db *, const struct stat *, cnid_t,
27 const char *, size_t);
28 extern int cnid_last_update(struct _cnid_db *, cnid_t, const struct stat *,
29 cnid_t, const char *, size_t);
30 extern int cnid_last_delete(struct _cnid_db *, cnid_t);
31
32#endif /* include/atalk/cnid_last.h */
cnid_t
uint32_t cnid_t
Definition adouble.h:156
cnid.h
cnid_last_module
struct _cnid_module cnid_last_module
Definition cnid_last.c:146
cnid_last_close
void cnid_last_close(struct _cnid_db *)
Definition cnid_last.c:66
cnid_last_add
cnid_t cnid_last_add(struct _cnid_db *, const struct stat *, cnid_t, const char *, size_t, cnid_t)
Definition cnid_last.c:21
cnid_last_lookup
cnid_t cnid_last_lookup(struct _cnid_db *, const struct stat *, cnid_t, const char *, size_t)
Definition cnid_last.c:91
cnid_last_delete
int cnid_last_delete(struct _cnid_db *, cnid_t)
Definition cnid_last.c:74
cnid_last_open
struct _cnid_db * cnid_last_open(struct cnid_open_args *args)
Definition cnid_last.c:133
cnid_last_get
cnid_t cnid_last_get(struct _cnid_db *, cnid_t, const char *, size_t)
Definition cnid_last.c:81
cnid_last_update
int cnid_last_update(struct _cnid_db *, cnid_t, const struct stat *, cnid_t, const char *, size_t)
Definition cnid_last.c:162
cnid_last_resolve
char * cnid_last_resolve(struct _cnid_db *, cnid_t *, void *, size_t)
Definition cnid_last.c:154
_cnid_db
Definition cnid.h:55
_cnid_last_private
Definition cnid_last.h:15
_cnid_last_private::last_did
cnid_t last_did
Definition cnid_last.h:16
_cnid_module
Definition cnid.h:95
cnid_open_args
Definition cnid.h:87
args
static char * args[]
Definition test.c:48