1 /*DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64
4 for INTEL64(R), AMD64(R)
6 Copyright(C) 2007-2009 Koine Yuusuke(koinec). All rights reserved.
8 Redistribution and use in source and binary forms, with or without
9 modification, are permitted provided that the following conditions are met:
11 1. Redistributions of source code must retain the above copyright notice,
12 this list of conditions and the following disclaimer.
13 2. Redistributions in binary form must reproduce the above copyright
14 notice, this list of conditions and the following disclaimer in the
15 documentation and/or other materials provided with the distribution.
17 THIS SOFTWARE IS PROVIDED BY Koine Yuusuke(koinec) ``AS IS'' AND ANY
18 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20 DISCLAIMED. IN NO EVENT SHALL Koine Yuusuke(koinec) OR CONTRIBUTORS BE
21 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
27 OF THE POSSIBILITY OF SUCH DAMAGE.
29 DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64DrDeAmOn64*/
31 /* File Info -----------------------------------------------------------
35 ----------------------------------------------------------------------*/
37 #ifndef DRD64_HEADER_SERVER_LOG
38 #define DRD64_HEADER_SERVER_LOG
40 #define DRD64_LOG_MODULE_MARSHALD 0x0000
41 #define DRD64_LOG_MODULE_DEBUGD 0x0001
42 #define DRD64_LOG_MODULE_LIBDRD64 0x0101
43 #define DRD64_LOG_MODULE_LIBGOBLIN 0x0102
44 #define DRD64_LOG_MODULE_LIBINTEL64ASM 0x0201
46 #define DRD64_LOG_MODULE_MARSHALD_IDENT "drmarshald"
47 #define DRD64_LOG_MODULE_DEBUGD_IDENT "drdebugd"
50 #define DRD64_LOG_LEVEL_NOLOG 0x00
51 #define DRD64_LOG_LEVEL_NORMAL 0x01
52 #define DRD64_LOG_LEVEL_VERBOSE 0x02
53 #define DRD64_LOG_LEVEL_DEBUG 0x03
55 #define DRD64_LOG_INFO(n) Drd64_Server_Log_OutLog(DRD64_LOG_LEVEL_NORMAL,(n))
56 #define DRD64_LOG_VERBOSE(n) \
57 Drd64_Server_Log_OutLog(DRD64_LOG_LEVEL_VERBOSE,(n))
58 #define DRD64_LOG_DEBUG(n) \
59 Drd64_Server_Log_OutLog(DRD64_LOG_LEVEL_DEBUG,(n))
61 #ifdef DRD64_SRC_SERVER_LOG
62 #define EXTERN_SERVER_LOG
64 #define EXTERN_SERVER_LOG extern
66 EXTERN_SERVER_LOG int gi_loglevel;
70 Drd64_Server_Log_OutLog(
76 Drd64_Server_Log_InitLogSystem(
83 Drd64_Server_Log_TermLogSystem(
87 #endif /* DRD64_HEADER_XXX */
89 /* EOF of drd64_.h ----------------------------------- */