+cnid_t cnid_lookup(struct _cnid_db *cdb, const struct stat *st, const cnid_t did,
+ char *name, const int len);
+
+char *cnid_resolve(struct _cnid_db *cdb, cnid_t *id, void *buffer, u_int32_t len);
+
+int cnid_update (struct _cnid_db *cdb, const cnid_t id, const struct stat *st,
+ const cnid_t did, char *name, const int len);
+
+cnid_t cnid_rebuild_add(struct _cnid_db *cdb, const struct stat *st, const cnid_t did,
+ const char *name, const int len, cnid_t hint);
+
+
+/* This function closes a CNID database and frees all resources assigned to it. */
+void cnid_close(struct _cnid_db *db);
+
+#endif
+
+/*
+ * $Log: cnid.h,v $
+ * Revision 1.10 2005-04-28 20:49:51 bfernhomberg
+ *
+ * - merge branch-netatalk-afp-3x-dev, HEAD was tagged before
+ *
+ * Revision 1.9.6.8 2005/04/25 22:33:24 lenneis
+ * Add a new interface to the cdb and dbd backends: cnid_rebuild_add. It
+ * takes dev, ino, did, name and cnid and writes these values unconditionally
+ * into the cnid database. To be used in a recovery tool that writes cnids
+ * cached in AppleDouble files back into the database. Not used yet by
+ * any daemons or command line utilities.
+ *
+ * Revision 1.9.6.7 2005/02/08 11:46:59 didg
+ *
+ * warnings fixes from 2.0 branch
+ *
+ * Revision 1.9.6.6 2004/02/22 18:36:37 didg
+ *
+ * small clean up
+ *
+ * Revision 1.9.6.5 2004/01/14 23:15:19 lenneis
+ * Check if we can get a DB stamp sucessfully in afs_openvol and fail
+ * the open if not.
+ *
+ * Revision 1.9.6.4 2004/01/10 07:19:31 bfernhomberg
+ * add cnid_init prototype
+ *
+ * Revision 1.9.6.3 2004/01/03 22:42:55 didg
+ *
+ * better errors handling in afpd for dbd cnid.
+ *
+ * Revision 1.9.6.2 2004/01/03 22:21:09 didg
+ *
+ * add nodev volume option (always use 0 for device number).
+ *
+ * Revision 1.9.6.1 2003/09/09 16:42:20 didg
+ *
+ * big merge for db frontend and unicode.
+ *
+ * Revision 1.9.4.2 2003/06/11 15:29:11 rlewczuk
+ * Removed obsolete parameter from cnid_add. Spotted by Didier.
+ *
+ * Revision 1.9.4.1 2003/05/29 07:53:19 rlewczuk
+ * Selectable CNIDs. Some refactoring. Propably needs more of refactoring, mainly
+ * a well designed API (current API is just an old cnid_* API enclosed in VMT).
+ *
+ */