serial.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2007, 2009  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 1999-2001  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00010  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00011  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00012  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00013  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00014  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00015  * PERFORMANCE OF THIS SOFTWARE.
00016  */
00017 
00018 /* $Id: serial.h,v 1.18 2009/01/18 23:48:14 tbox Exp $ */
00019 
00020 #ifndef ISC_SERIAL_H
00021 #define ISC_SERIAL_H 1
00022 
00023 #include <isc/lang.h>
00024 #include <isc/types.h>
00025 
00026 /*! \file isc/serial.h
00027  *      \brief Implement 32 bit serial space arithmetic comparison functions.
00028  *      Note: Undefined results are returned as ISC_FALSE.
00029  */
00030 
00031 /***
00032  ***    Functions
00033  ***/
00034 
00035 ISC_LANG_BEGINDECLS
00036 
00037 isc_boolean_t
00038 isc_serial_lt(isc_uint32_t a, isc_uint32_t b);
00039 /*%<
00040  *      Return true if 'a' < 'b' otherwise false.
00041  */
00042 
00043 isc_boolean_t
00044 isc_serial_gt(isc_uint32_t a, isc_uint32_t b);
00045 /*%<
00046  *      Return true if 'a' > 'b' otherwise false.
00047  */
00048 
00049 isc_boolean_t
00050 isc_serial_le(isc_uint32_t a, isc_uint32_t b);
00051 /*%<
00052  *      Return true if 'a' <= 'b' otherwise false.
00053  */
00054 
00055 isc_boolean_t
00056 isc_serial_ge(isc_uint32_t a, isc_uint32_t b);
00057 /*%<
00058  *      Return true if 'a' >= 'b' otherwise false.
00059  */
00060 
00061 isc_boolean_t
00062 isc_serial_eq(isc_uint32_t a, isc_uint32_t b);
00063 /*%<
00064  *      Return true if 'a' == 'b' otherwise false.
00065  */
00066 
00067 isc_boolean_t
00068 isc_serial_ne(isc_uint32_t a, isc_uint32_t b);
00069 /*%<
00070  *      Return true if 'a' != 'b' otherwise false.
00071  */
00072 
00073 ISC_LANG_ENDDECLS
00074 
00075 #endif /* ISC_SERIAL_H */

Generated on Tue Apr 28 17:41:04 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha