"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.17.5/lib/dns/include/dns/update.h" (4 Sep 2020, 1651 Bytes) of package /linux/misc/dns/bind9/9.17.5/bind-9.17.5.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 "update.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 DNS_UPDATE_H
   13 #define DNS_UPDATE_H 1
   14 
   15 /*! \file dns/update.h */
   16 
   17 /***
   18  ***    Imports
   19  ***/
   20 
   21 #include <inttypes.h>
   22 
   23 #include <isc/lang.h>
   24 
   25 #include <dns/diff.h>
   26 #include <dns/types.h>
   27 
   28 typedef struct {
   29     void (*func)(void *arg, dns_zone_t *zone, int level,
   30              const char *message);
   31     void *arg;
   32 } dns_update_log_t;
   33 
   34 ISC_LANG_BEGINDECLS
   35 
   36 /***
   37  ***    Functions
   38  ***/
   39 
   40 uint32_t
   41 dns_update_soaserial(uint32_t serial, dns_updatemethod_t method);
   42 /*%<
   43  * Return the next serial number after 'serial', depending on the
   44  * update method 'method':
   45  *
   46  *\li   * dns_updatemethod_increment increments the serial number by one
   47  *\li   * dns_updatemethod_unixtime sets the serial number to the current
   48  *    time (seconds since UNIX epoch) if possible, or increments by one
   49  *    if not.
   50  */
   51 
   52 isc_result_t
   53 dns_update_signatures(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db,
   54               dns_dbversion_t *oldver, dns_dbversion_t *newver,
   55               dns_diff_t *diff, uint32_t sigvalidityinterval);
   56 
   57 isc_result_t
   58 dns_update_signaturesinc(dns_update_log_t *log, dns_zone_t *zone, dns_db_t *db,
   59              dns_dbversion_t *oldver, dns_dbversion_t *newver,
   60              dns_diff_t *diff, uint32_t sigvalidityinterval,
   61              dns_update_state_t **state);
   62 
   63 ISC_LANG_ENDDECLS
   64 
   65 #endif /* DNS_UPDATE_H */