Commit 57b47bca authored by Mark Andrews's avatar Mark Andrews

checkpoint

parent 0eca1381
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: namedconf.c,v 1.116 2010/05/21 14:10:32 marka Exp $ */
/* $Id: namedconf.c,v 1.117 2010/05/29 10:36:22 marka Exp $ */
/*! \file */
......@@ -64,6 +64,8 @@ parse_optional_keyvalue(cfg_parser_t *pctx, const cfg_type_t *type,
static isc_result_t
parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type,
cfg_obj_t **ret);
static void
print_updatepolicy(cfg_printer_t *pctx, const cfg_obj_t *obj);
static void
doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type);
......@@ -342,8 +344,8 @@ static cfg_type_t cfg_type_grant = {
};
static cfg_type_t cfg_type_updatepolicy = {
"update_policy", parse_updatepolicy, NULL, doc_updatepolicy,
&cfg_rep_list, &cfg_type_grant
"update_policy", parse_updatepolicy, print_updatepolicy,
doc_updatepolicy, &cfg_rep_list, &cfg_type_grant
};
static isc_result_t
......@@ -381,6 +383,14 @@ parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type,
return (result);
}
static void
print_updatepolicy(cfg_printer_t *pctx, const cfg_obj_t *obj) {
if (cfg_obj_isstring(obj))
cfg_print_ustring(pctx, obj);
else
cfg_print_bracketed_list(pctx, obj);
}
static void
doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type) {
cfg_print_cstr(pctx, "( local | { ");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment