eventclass.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 1998-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: eventclass.h,v 1.18 2007/06/19 23:47:18 tbox Exp $ */
00019 
00020 #ifndef ISC_EVENTCLASS_H
00021 #define ISC_EVENTCLASS_H 1
00022 
00023 /*! \file isc/eventclass.h
00024  ***** Registry of Predefined Event Type Classes
00025  *****/
00026 
00027 /*%
00028  * An event class is an unsigned 16 bit number.  Each class may contain up
00029  * to 65536 events.  An event type is formed by adding the event number
00030  * within the class to the class number.
00031  *
00032  */
00033 
00034 #define ISC_EVENTCLASS(eclass)          ((eclass) << 16)
00035 
00036 /*@{*/
00037 /*!
00038  * Classes < 1024 are reserved for ISC use.
00039  * Event classes >= 1024 and <= 65535 are reserved for application use.
00040  */
00041 
00042 #define ISC_EVENTCLASS_TASK             ISC_EVENTCLASS(0)
00043 #define ISC_EVENTCLASS_TIMER            ISC_EVENTCLASS(1)
00044 #define ISC_EVENTCLASS_SOCKET           ISC_EVENTCLASS(2)
00045 #define ISC_EVENTCLASS_FILE             ISC_EVENTCLASS(3)
00046 #define ISC_EVENTCLASS_DNS              ISC_EVENTCLASS(4)
00047 #define ISC_EVENTCLASS_APP              ISC_EVENTCLASS(5)
00048 #define ISC_EVENTCLASS_OMAPI            ISC_EVENTCLASS(6)
00049 #define ISC_EVENTCLASS_RATELIMITER      ISC_EVENTCLASS(7)
00050 #define ISC_EVENTCLASS_ISCCC            ISC_EVENTCLASS(8)
00051 /*@}*/
00052 
00053 #endif /* ISC_EVENTCLASS_H */

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