2 * $Id: cnid_db3_nextid.c,v 1.1.4.1 2003-09-09 16:42:21 didg Exp $
6 #endif /* HAVE_CONFIG_H */
8 #ifdef CNID_BACKEND_DB3
14 #include <atalk/adouble.h>
17 #include <atalk/logger.h>
19 #include "cnid_db3_private.h"
21 /* return the next id. we use the fact that ad files are memory
23 cnid_t cnid_db3_nextid(struct _cnid_db *cdb)
28 if (!cdb || !(db = cdb->_private))
31 memcpy(&id, ad_entry(&db->rootinfo, ADEID_DID), sizeof(id));
36 #endif /* CNID_BACKEND_DB3 */