mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-26 11:32:01 -05:00
4224. [func] Added support for "dyndb", a new interface for loading zone data from an external database, developed by Red Hat for the FreeIPA project. DynDB drivers fully implement the BIND database API, and are capable of significantly better performance and functionality than DLZ drivers, while taking advantage of advanced database features not available in BIND such as multi-master replication. Thanks to Adam Tkac and Petr Spacek of Red Hat. [RT #35271]
27 lines
623 B
C
27 lines
623 B
C
/*
|
|
* Copyright (C) 2009--2015 Red Hat ; see COPYRIGHT for license
|
|
*/
|
|
|
|
#ifndef _LD_LOG_H_
|
|
#define _LD_LOG_H_
|
|
|
|
#include <isc/error.h>
|
|
#include <dns/log.h>
|
|
#include <dns/result.h>
|
|
|
|
#define fatal_error(...) \
|
|
isc_error_fatal(__FILE__, __LINE__, __VA_ARGS__)
|
|
|
|
#define log_error_r(fmt, ...) \
|
|
log_error(fmt ": %s", ##__VA_ARGS__, dns_result_totext(result))
|
|
|
|
#define log_error(format, ...) \
|
|
log_write(ISC_LOG_ERROR, format, ##__VA_ARGS__)
|
|
|
|
#define log_info(format, ...) \
|
|
log_write(ISC_LOG_INFO, format, ##__VA_ARGS__)
|
|
|
|
void
|
|
log_write(int level, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
|
|
|
|
#endif /* !_LD_LOG_H_ */
|