]> arthur.barton.de Git - netatalk.git/blob - libatalk/cnid/last/cnid_last.h
- merge branch-netatalk-afp-3x-dev, HEAD was tagged before
[netatalk.git] / libatalk / cnid / last / cnid_last.h
1
2 /* 
3  * interface for database access to cnids. i do it this way to abstract
4  * things a bit in case we want to change the underlying implementation.
5  */
6
7 #ifndef _ATALK_CNID_LAST__H
8 #define _ATALK_CNID_LAST__H 1
9
10 #include <sys/cdefs.h>
11 #include <sys/stat.h>
12 #include <unistd.h>
13 #include <string.h>
14
15 #include <netatalk/endian.h>
16 #include <atalk/cnid.h>
17
18 struct _cnid_last_private {
19     cnid_t last_did;
20 };
21
22 extern struct _cnid_module cnid_last_module;
23 extern struct _cnid_db *cnid_last_open __P((const char *, mode_t));
24 extern void cnid_last_close __P((struct _cnid_db *));
25 extern cnid_t cnid_last_add __P((struct _cnid_db *, const struct stat *, const cnid_t,
26                                  char *, const int, cnid_t));
27 extern cnid_t cnid_last_get __P((struct _cnid_db *, const cnid_t, char *, const int));
28 extern char *cnid_last_resolve __P((struct _cnid_db *, cnid_t *, void *, u_int32_t));
29 extern cnid_t cnid_last_lookup __P((struct _cnid_db *, const struct stat *, const cnid_t, char *, const int));
30 extern int cnid_last_update __P((struct _cnid_db *, const cnid_t, const struct stat *,
31                                  const cnid_t, char *, int));
32 extern int cnid_last_delete __P((struct _cnid_db *, const cnid_t));
33
34 #endif /* include/atalk/cnid_last.h */