bin/tests/system/dlzexternal/driver.c
/*
 * Remember a helper function from the bind9 dlz_dlopen driver
 */
Remember a helper function from the bind9 dlz_dlopen driver
Remember a helper function from the bind9 dlz_dlopen driver
static void
b9_add_helper(struct dlz_example_data *state,
	      const char *helper_name, void *ptr)
{
	if (strcmp(helper_name, "log") == 0)
		state->log = (log_t *)ptr;
	if (strcmp(helper_name, "putrr") == 0)
		state->putrr = (dns_sdlz_putrr_t *)ptr;
	if (strcmp(helper_name, "putnamedrr") == 0)
		state->putnamedrr = (dns_sdlz_putnamedrr_t *)ptr;
	if (strcmp(helper_name, "writeable_zone") == 0)
		state->writeable_zone = (dns_dlz_writeablezone_t *)ptr;
}
static void b9_add_helper ( struct dlz_example_data * state , const char * helper_name , void * ptr ) { if ( strcmp ( helper_name , " " ) == 0 ) state -> log = ( log_t * ) ptr ; if ( strcmp ( helper_name , " " ) == 0 ) state -> putrr = ( dns_sdlz_putrr_t * ) ptr ; if ( strcmp ( helper_name , " " ) == 0 ) state -> putnamedrr = ( dns_sdlz_putnamedrr_t * ) ptr ; if ( strcmp ( helper_name , " " ) == 0 ) state -> writeable_zone = ( dns_dlz_writeablezone_t * ) ptr ; }
Remember a helper function from the bind9 dlz_dlopen driver
Remember a helper function from the bind9 dlz_dlopen driver