"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.11.23/lib/isc/include/isc/serial.h" (7 Sep 2020, 1367 Bytes) of package /linux/misc/dns/bind9/9.11.23/bind-9.11.23.tar.gz:


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