*/
isc_result_t
-cfg_map_addclone(cfg_obj_t *map, const cfg_obj_t *obj,
- const cfg_clausedef_t *clause);
+cfg_map_add(cfg_obj_t *map, const cfg_obj_t *obj,
+ const cfg_clausedef_t *clause);
/*%<
- * Add a clone of 'obj' to the specified clause in mapbody 'mapobj'.
+ * Clone 'obj' and add its clone to the specified clause in mapbody 'mapobj'.
* If the clause is tagged with CFG_CLAUSEFLAG_MULTI, the function expects
* that 'obj' is a list and will clone each element and sequentially add them
* (preserving the order), instead of adding a list as single element of
if (effectiveres == ISC_R_NOTFOUND &&
defaultres == ISC_R_SUCCESS)
{
- INSIST(cfg_map_addclone(effectivemap, defaultobj,
- clause) == ISC_R_SUCCESS);
+ INSIST(cfg_map_add(effectivemap, defaultobj, clause) ==
+ ISC_R_SUCCESS);
continue;
}
const cfg_clausedef_t *clause = cfg_map_findclause(options->type,
clausename);
- result = cfg_map_addclone(options, obj, clause);
+ result = cfg_map_add(options, obj, clause);
INSIST(result == ISC_R_SUCCESS);
}
}
isc_result_t
-cfg_map_addclone(cfg_obj_t *map, const cfg_obj_t *obj,
- const cfg_clausedef_t *clause) {
+cfg_map_add(cfg_obj_t *map, const cfg_obj_t *obj,
+ const cfg_clausedef_t *clause) {
isc_result_t result = ISC_R_SUCCESS;
cfg_obj_t *clone = NULL;