* \li #ISC_R_NOTFOUND - name not found in map
*/
-isc_result_t
-cfg_map_add(cfg_obj_t *mapobj, cfg_obj_t *obj, const char *clause);
-/*%<
- * Add the object 'obj' to the specified clause in mapbody 'mapobj'.
- * Used for adding new zones.
- *
- * Require:
- * \li 'obj' is a valid cfg_obj_t.
- * \li 'mapobj' is a valid cfg_obj_t of type map.
- */
-
const cfg_obj_t *
cfg_map_getname(const cfg_obj_t *mapobj);
/*%<
return result;
}
-isc_result_t
-cfg_map_add(cfg_obj_t *mapobj, cfg_obj_t *obj, const char *clausename) {
- const cfg_clausedef_t *clause;
-
- REQUIRE(VALID_CFGOBJ(obj));
- REQUIRE(VALID_CFGOBJ(mapobj));
- REQUIRE(mapobj->type->rep == &cfg_rep_map);
- REQUIRE(clausename != NULL);
-
- clause = cfg_map_findclause(mapobj->type, clausename);
- if (clause == NULL || clause->name == NULL) {
- return ISC_R_FAILURE;
- }
-
- return map_define(mapobj, obj, clause);
-}
-
isc_result_t
cfg_map_addclone(cfg_obj_t *map, const cfg_obj_t *obj,
const cfg_clausedef_t *clause) {