2 * $Id: cnid_cdb_nextid.c,v 1.1.4.1 2003-09-09 16:42:21 didg Exp $
7 #endif /* HAVE_CONFIG_H */
9 #ifdef CNID_BACKEND_CDB
15 #include <atalk/adouble.h>
18 #include <atalk/logger.h>
20 #include "cnid_cdb_private.h"
22 /* return the next id. we use the fact that ad files are memory
24 cnid_t cnid_cdb_nextid(struct _cnid_db *cdb)
29 if (!cdb || !(db = cdb->_private))
32 memcpy(&id, ad_entry(&db->rootinfo, ADEID_DID), sizeof(id));
37 #endif /* CNID_BACKEND_CDB */