2 * $Id: cnid_db3_nextid.c,v 1.2 2005-04-28 20:49:59 bfernhomberg Exp $
6 #endif /* HAVE_CONFIG_H */
8 #ifdef CNID_BACKEND_DB3
18 #include <atalk/adouble.h>
21 #include <atalk/logger.h>
23 #include "cnid_db3_private.h"
25 /* return the next id. we use the fact that ad files are memory
27 cnid_t cnid_db3_nextid(struct _cnid_db *cdb)
32 if (!cdb || !(db = cdb->_private))
35 memcpy(&id, ad_entry(&db->rootinfo, ADEID_DID), sizeof(id));
40 #endif /* CNID_BACKEND_DB3 */