"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/lib/isccfg/include/isccfg/kaspconf.h" (4 Sep 2020, 1435 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 "kaspconf.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_KASPCONF_H
   13 #define ISCCFG_KASPCONF_H 1
   14 
   15 #include <isc/lang.h>
   16 
   17 #include <dns/types.h>
   18 
   19 #include <isccfg/cfg.h>
   20 
   21 /***
   22  *** Functions
   23  ***/
   24 
   25 ISC_LANG_BEGINDECLS
   26 
   27 isc_result_t
   28 cfg_kasp_fromconfig(const cfg_obj_t *config, isc_mem_t *mctx, isc_log_t *logctx,
   29             dns_kasplist_t *kasplist, dns_kasp_t **kaspp);
   30 /*%<
   31  * Create and configure a KASP. If 'config' is NULL, the default configuration
   32  * is used. If a 'kasplist' is provided, a lookup happens and if a KASP
   33  * already exists with the same name, no new KASP is created, and no attach to
   34  * 'kaspp' happens.
   35  *
   36  * Requires:
   37  *
   38  *\li  'mctx' is a valid memory context.
   39  *
   40  *\li  'logctx' is a valid logging context.
   41  *
   42  *\li  'name' is a valid C string.
   43  *
   44  *\li  kaspp != NULL && *kaspp == NULL
   45  *
   46  * Returns:
   47  *
   48  *\li  #ISC_R_SUCCESS  If creating and configuring the KASP succeeds.
   49  *\li  #ISC_R_EXISTS   If 'kasplist' already has a kasp structure with 'name'.
   50  *\li  #ISC_R_NOMEMORY
   51  *
   52  *\li  Other errors are possible.
   53  */
   54 
   55 ISC_LANG_ENDDECLS
   56 
   57 #endif /* ISCCFG_KASPCONF_H */