bind/bind-9.9.9-P3/bin/named/zoneconf.c
/*%
 * Convert a config file zone type into a server zone type.
 */
%
Convert a config file zone type into a server zone type.
% Convert a config file zone type into a server zone type .
static inline dns_zonetype_t
zonetype_fromconfig(const cfg_obj_t *map) {
	const cfg_obj_t *obj = NULL;
	isc_result_t result;
	result = cfg_map_get(map, "type", &obj);
	INSIST(result == ISC_R_SUCCESS && obj != NULL);
	return (ns_config_getzonetype(obj));
}
static inline dns_zonetype_t zonetype_fromconfig ( const cfg_obj_t * map ) { const cfg_obj_t * obj = NULL ; isc_result_t result ; result = cfg_map_get ( map , " " , & obj ) ; INSIST ( result == ISC_R_SUCCESS && obj != NULL ) ; return ( ns_config_getzonetype ( obj ) ) ; }
%
 Convert a config file zone type into a server zone type.
% Convert a config file zone type into a server zone type .