"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.17.5/lib/isc/include/isc/serial.h" (4 Sep 2020, 1366 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 "serial.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 ISC_SERIAL_H
   13 #define ISC_SERIAL_H 1
   14 
   15 #include <inttypes.h>
   16 #include <stdbool.h>
   17 
   18 #include <isc/lang.h>
   19 #include <isc/types.h>
   20 
   21 /*! \file isc/serial.h
   22  *  \brief Implement 32 bit serial space arithmetic comparison functions.
   23  *  Note: Undefined results are returned as false.
   24  */
   25 
   26 /***
   27  ***    Functions
   28  ***/
   29 
   30 ISC_LANG_BEGINDECLS
   31 
   32 bool
   33 isc_serial_lt(uint32_t a, uint32_t b);
   34 /*%<
   35  *  Return true if 'a' < 'b' otherwise false.
   36  */
   37 
   38 bool
   39 isc_serial_gt(uint32_t a, uint32_t b);
   40 /*%<
   41  *  Return true if 'a' > 'b' otherwise false.
   42  */
   43 
   44 bool
   45 isc_serial_le(uint32_t a, uint32_t b);
   46 /*%<
   47  *  Return true if 'a' <= 'b' otherwise false.
   48  */
   49 
   50 bool
   51 isc_serial_ge(uint32_t a, uint32_t b);
   52 /*%<
   53  *  Return true if 'a' >= 'b' otherwise false.
   54  */
   55 
   56 bool
   57 isc_serial_eq(uint32_t a, uint32_t b);
   58 /*%<
   59  *  Return true if 'a' == 'b' otherwise false.
   60  */
   61 
   62 bool
   63 isc_serial_ne(uint32_t a, uint32_t b);
   64 /*%<
   65  *  Return true if 'a' != 'b' otherwise false.
   66  */
   67 
   68 ISC_LANG_ENDDECLS
   69 
   70 #endif /* ISC_SERIAL_H */