"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/lib/isccfg/include/isccfg/log.h" (4 Sep 2020, 1180 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "log.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 #ifndef ISCCFG_LOG_H
   13 #define ISCCFG_LOG_H 1
   14 
   15 /*! \file isccfg/log.h */
   16 
   17 #include <isc/lang.h>
   18 #include <isc/log.h>
   19 
   20 LIBISCCFG_EXTERNAL_DATA extern isc_logcategory_t cfg_categories[];
   21 LIBISCCFG_EXTERNAL_DATA extern isc_logmodule_t   cfg_modules[];
   22 
   23 #define CFG_LOGCATEGORY_CONFIG (&cfg_categories[0])
   24 
   25 #define CFG_LOGMODULE_PARSER (&cfg_modules[0])
   26 
   27 ISC_LANG_BEGINDECLS
   28 
   29 void
   30 cfg_log_init(isc_log_t *lctx);
   31 /*%<
   32  * Make the libisccfg categories and modules available for use with the
   33  * ISC logging library.
   34  *
   35  * Requires:
   36  *\li   lctx is a valid logging context.
   37  *
   38  *\li   cfg_log_init() is called only once.
   39  *
   40  * Ensures:
   41  * \li  The categories and modules defined above are available for
   42  *  use by isc_log_usechannnel() and isc_log_write().
   43  */
   44 
   45 ISC_LANG_ENDDECLS
   46 
   47 #endif /* ISCCFG_LOG_H */