callbacks.c File Reference

#include <config.h>
#include <isc/util.h>
#include <dns/callbacks.h>
#include <dns/log.h>

Go to the source code of this file.

Functions

static void stdio_error_warn_callback (dns_rdatacallbacks_t *, const char *,...)
static void isclog_error_callback (dns_rdatacallbacks_t *callbacks, const char *fmt,...)
static void isclog_warn_callback (dns_rdatacallbacks_t *callbacks, const char *fmt,...)
static void dns_rdatacallbacks_initcommon (dns_rdatacallbacks_t *callbacks)
void dns_rdatacallbacks_init (dns_rdatacallbacks_t *callbacks)
 Initialize 'callbacks'.
void dns_rdatacallbacks_init_stdio (dns_rdatacallbacks_t *callbacks)
 Like dns_rdatacallbacks_init, but logs to stdio.


Detailed Description

Definition in file callbacks.c.


Function Documentation

static void stdio_error_warn_callback ( dns_rdatacallbacks_t ,
const char *  ,
  ... 
) [static]

Definition at line 30 of file callbacks.c.

References UNUSED.

Referenced by dns_rdatacallbacks_init_stdio().

static void isclog_error_callback ( dns_rdatacallbacks_t callbacks,
const char *  fmt,
  ... 
) [static]

Definition at line 60 of file callbacks.c.

References dns_lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_MASTER, ISC_LOG_ERROR, isc_log_vwrite(), and UNUSED.

Referenced by dns_rdatacallbacks_init().

static void isclog_warn_callback ( dns_rdatacallbacks_t callbacks,
const char *  fmt,
  ... 
) [static]

Definition at line 73 of file callbacks.c.

References dns_lctx, DNS_LOGCATEGORY_GENERAL, DNS_LOGMODULE_MASTER, isc_log_vwrite(), ISC_LOG_WARNING, and UNUSED.

Referenced by dns_rdatacallbacks_init().

static void dns_rdatacallbacks_initcommon ( dns_rdatacallbacks_t callbacks  )  [static]

Definition at line 87 of file callbacks.c.

References dns_rdatacallbacks::add, dns_rdatacallbacks::add_private, DNS_CALLBACK_MAGIC, dns_rdatacallbacks::error_private, dns_rdatacallbacks::magic, dns_rdatacallbacks::rawdata, REQUIRE, dns_rdatacallbacks::warn_private, and dns_rdatacallbacks::zone.

Referenced by dns_rdatacallbacks_init(), and dns_rdatacallbacks_init_stdio().

void dns_rdatacallbacks_init ( dns_rdatacallbacks_t callbacks  ) 

Initialize 'callbacks'.

Requires:

Definition at line 104 of file callbacks.c.

References dns_rdatacallbacks_initcommon(), dns_rdatacallbacks::error, isclog_error_callback(), isclog_warn_callback(), and dns_rdatacallbacks::warn.

Referenced by axfr_init(), createnode(), db_load_from_stream(), dns_db_load3(), dns_rootns_create(), parse_rdata(), and zone_startload().

void dns_rdatacallbacks_init_stdio ( dns_rdatacallbacks_t callbacks  ) 

Like dns_rdatacallbacks_init, but logs to stdio.

Definition at line 111 of file callbacks.c.

References dns_rdatacallbacks_initcommon(), dns_rdatacallbacks::error, stdio_error_warn_callback(), and dns_rdatacallbacks::warn.

Referenced by setup_master().


Generated on Tue Apr 28 17:41:07 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha