2 * $Id: cnid_cdb_nextid.c,v 1.2 2005-04-28 20:49:59 bfernhomberg Exp $
7 #endif /* HAVE_CONFIG_H */
9 #ifdef CNID_BACKEND_CDB
12 #include "cnid_cdb_private.h"
14 /* return the next id. we use the fact that ad files are memory
16 cnid_t cnid_cdb_nextid(struct _cnid_db *cdb)
21 if (!cdb || !(db = cdb->_private))
24 memcpy(&id, ad_entry(&db->rootinfo, ADEID_DID), sizeof(id));
29 #endif /* CNID_BACKEND_CDB */