isc_result_t dlz_subrdataset(const char *name, const char *rdatastr, void *dbdata, void *version) { struct dlz_example_data *state = (struct dlz_example_data *)dbdata; if (version != (void *) &state->transaction_started) return (ISC_R_FAILURE); if (state->log != NULL) state->log(ISC_LOG_INFO, "dlz_example: subtracting rdataset " "%s '%s'", name, rdatastr); return (modrdataset(state, name, rdatastr, &state->deletes[0])); }
isc_result_t dlz_addrdataset(const char *name, const char *rdatastr, void *dbdata, void *version) { struct dlz_example_data *state = (struct dlz_example_data *)dbdata; if (version != (void *) &state->transaction_started) return (ISC_R_FAILURE); state->log(ISC_LOG_INFO, "dlz_example: adding rdataset %s '%s'", name, rdatastr); return (modrdataset(state, name, rdatastr, &state->adds[0])); }