contrib/dlz/example/dlz_example.c
/*
  see if we handle a given zone
 */
see if we handle a given zone
see if we handle a given zone
isc_result_t dlz_findzonedb(void *dbdata, const char *name)
{
	struct dlz_example_data *state = (struct dlz_example_data *)dbdata;
	if (strcasecmp(state->zone_name, name) == 0) {
		return ISC_R_SUCCESS;
	}
	return ISC_R_NOTFOUND;
}
isc_result_t dlz_findzonedb ( void * dbdata , const char * name ) { struct dlz_example_data * state = ( struct dlz_example_data * ) dbdata ; if ( strcasecmp ( state -> zone_name , name ) == 0 ) { return ISC_R_SUCCESS ; } return ISC_R_NOTFOUND ; }
see if we handle a given zone
see if we handle a given zone