Lines Matching defs:callbacks
26 #include <dns/callbacks.h>
79 dns_rdatacallbacks_t *callbacks
196 default_fromtext_callback(dns_rdatacallbacks_t *callbacks, const char *, ...)
201 dns_rdatacallbacks_t *callbacks, const char *name,
205 fromtext_warneof(isc_lex_t *lexer, dns_rdatacallbacks_t *callbacks);
213 dns_rdatacallbacks_t *callbacks);
217 dns_rdatacallbacks_t *callbacks);
379 isc_lex_t *lexer, dns_rdatacallbacks_t *callbacks)
385 if (result == 1 && callbacks != NULL &&
390 (*callbacks->warn)(callbacks, "%s:%lu: \"%s\" "
917 isc_buffer_t *target, dns_rdatacallbacks_t *callbacks)
937 if (callbacks != NULL) {
938 REQUIRE(callbacks->warn != NULL);
939 REQUIRE(callbacks->error != NULL);
944 if (callbacks != NULL)
945 callback = callbacks->error;
954 fromtext_error(callback, callbacks, name, line, NULL, result);
999 fromtext_error(callback, callbacks, name,
1007 fromtext_error(callback, callbacks, name,
1012 fromtext_error(callback, callbacks, name, line,
1017 fromtext_warneof(lexer, callbacks);
2154 default_fromtext_callback(dns_rdatacallbacks_t *callbacks, const char *fmt,
2159 UNUSED(callbacks);
2168 fromtext_warneof(isc_lex_t *lexer, dns_rdatacallbacks_t *callbacks) {
2169 if (isc_lex_isfile(lexer) && callbacks != NULL) {
2173 (*callbacks->warn)(callbacks,
2181 dns_rdatacallbacks_t *callbacks)
2189 (*callbacks->warn)(callbacks, "%s:%u: warning: '%s': %s",
2197 dns_rdatacallbacks_t *callbacks)
2207 (*callbacks->warn)(callbacks, "%s:%u: warning: %s: %s",
2215 dns_rdatacallbacks_t *callbacks, const char *name,
2224 (*callback)(callbacks, "%s: %s:%lu: near eol: %s",
2229 (*callback)(callbacks, "%s: %s:%lu: near eof: %s",
2234 (*callback)(callbacks, "%s: %s:%lu: near %lu: %s",
2241 (*callback)(callbacks, "%s: %s:%lu: near '%s': %s",
2247 (*callback)(callbacks, "%s: %s:%lu: %s",
2253 (*callback)(callbacks, "dns_rdata_fromtext: %s:%lu: %s",