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.
7 #ifndef _ATALK_CNID_LAST__H
8 #define _ATALK_CNID_LAST__H 1
10 #include <sys/cdefs.h>
15 #include <netatalk/endian.h>
16 #include <atalk/cnid.h>
18 struct _cnid_last_private {
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 const char *, const int, cnid_t));
27 extern cnid_t cnid_last_get __P((struct _cnid_db *, const cnid_t, const 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, const char *, const int));
30 extern int cnid_last_update __P((struct _cnid_db *, const cnid_t, const struct stat *,
31 const cnid_t, const char *, int));
32 extern int cnid_last_delete __P((struct _cnid_db *, const cnid_t));
34 #endif /* include/atalk/cnid_last.h */