"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.17.5/lib/isc/include/isc/eventclass.h" (4 Sep 2020, 1441 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 "eventclass.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_EVENTCLASS_H
   13 #define ISC_EVENTCLASS_H 1
   14 
   15 /*! \file isc/eventclass.h
   16  ***** Registry of Predefined Event Type Classes
   17  *****/
   18 
   19 /*%
   20  * An event class is an unsigned 16 bit number.  Each class may contain up
   21  * to 65536 events.  An event type is formed by adding the event number
   22  * within the class to the class number.
   23  *
   24  */
   25 
   26 #define ISC_EVENTCLASS(eclass) ((eclass) << 16)
   27 
   28 /*@{*/
   29 /*!
   30  * Classes < 1024 are reserved for ISC use.
   31  * Event classes >= 1024 and <= 65535 are reserved for application use.
   32  */
   33 
   34 #define ISC_EVENTCLASS_TASK    ISC_EVENTCLASS(0)
   35 #define ISC_EVENTCLASS_TIMER       ISC_EVENTCLASS(1)
   36 #define ISC_EVENTCLASS_SOCKET      ISC_EVENTCLASS(2)
   37 #define ISC_EVENTCLASS_FILE    ISC_EVENTCLASS(3)
   38 #define ISC_EVENTCLASS_DNS     ISC_EVENTCLASS(4)
   39 #define ISC_EVENTCLASS_APP     ISC_EVENTCLASS(5)
   40 #define ISC_EVENTCLASS_OMAPI       ISC_EVENTCLASS(6)
   41 #define ISC_EVENTCLASS_RATELIMITER ISC_EVENTCLASS(7)
   42 #define ISC_EVENTCLASS_ISCCC       ISC_EVENTCLASS(8)
   43 #define ISC_EVENTCLASS_NS      ISC_EVENTCLASS(9)
   44 /*@}*/
   45 
   46 #endif /* ISC_EVENTCLASS_H */