/** * Get full DNS name from the node. * * @warning * The code silently expects that "node" came from RBTDB and thus * assumption dns_dbnode_t (from RBTDB) == dns_rbtnode_t is correct. * * This should work as long as we use only RBTDB and nothing else. */ static isc_result_t ldapdb_name_fromnode(dns_dbnode_t *node, dns_name_t *name) { dns_rbtnode_t *rbtnode = (dns_rbtnode_t *) node; return dns_rbt_fullnamefromnode(rbtnode, name); }
/* * Get full DNS name from the node. * * @warning * The code silently expects that "node" came from RBTDB and thus * assumption dns_dbnode_t (from RBTDB) == dns_rbtnode_t is correct. * * This should work as long as we use only RBTDB and nothing else. */ static isc_result_t sample_name_fromnode(dns_dbnode_t *node, dns_name_t *name) { dns_rbtnode_t *rbtnode = (dns_rbtnode_t *) node; return (dns_rbt_fullnamefromnode(rbtnode, name)); }