Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxlog.h

Go to the documentation of this file.
00001 /* $XFree86$ */
00002 /*
00003  * Copyright 2001 Red Hat Inc., Durham, North Carolina.
00004  *
00005  * All Rights Reserved.
00006  *
00007  * Permission is hereby granted, free of charge, to any person obtaining
00008  * a copy of this software and associated documentation files (the
00009  * "Software"), to deal in the Software without restriction, including
00010  * without limitation on the rights to use, copy, modify, merge,
00011  * publish, distribute, sublicense, and/or sell copies of the Software,
00012  * and to permit persons to whom the Software is furnished to do so,
00013  * subject to the following conditions:
00014  *
00015  * The above copyright notice and this permission notice (including the
00016  * next paragraph) shall be included in all copies or substantial
00017  * portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00020  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00021  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00022  * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
00023  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00024  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00025  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00026  * SOFTWARE.
00027  */
00028 
00029 /*
00030  * Authors:
00031  *   Rickard E. (Rik) Faith <faith@redhat.com>
00032  *
00033  */
00034 
00039 #ifndef _DMXLOG_H_
00040 #define _DMXLOG_H_
00041 
00043 typedef enum {
00044     dmxDebug,                   
00045     dmxInfo,                    
00046     dmxWarning,                 
00049     dmxError,                   
00052     dmxFatal                    
00054 } dmxLogLevel;
00055 
00056 /* Logging functions used by Xserver/hw/dmx routines. */
00057 extern dmxLogLevel dmxSetLogLevel(dmxLogLevel newLevel);
00058 extern dmxLogLevel dmxGetLogLevel(void);
00059 extern void        dmxLog(dmxLogLevel logLevel, const char *format, ...);
00060 extern void        dmxLogCont(dmxLogLevel logLevel, const char *format, ...);
00061 extern const char  *dmxEventName(int type);
00062 
00063 #ifndef DMX_LOG_STANDALONE
00064 extern void dmxLogOutput(DMXScreenInfo *dmxScreen, const char *format, ...);
00065 extern void dmxLogOutputCont(DMXScreenInfo *dmxScreen, const char *format,
00066                              ...);
00067 extern void dmxLogOutputWarning(DMXScreenInfo *dmxScreen, const char *format,
00068                                 ...);
00069 extern void dmxLogInput(DMXInputInfo *dmxInput, const char *format, ...);
00070 extern void dmxLogInputCont(DMXInputInfo *dmxInput, const char *format, ...);
00071 extern void dmxLogArgs(dmxLogLevel logLevel, int argc, char **argv);
00072 extern void dmxLogVisual(DMXScreenInfo *dmxScreen, XVisualInfo *vi,
00073                          int defaultVisual);
00074 #ifdef XINPUT
00075 extern const char *dmxXInputEventName(int type);
00076 #endif
00077 #endif
00078 
00079 #endif

Generated June 13, 2004 for Distributed Multihead X by doxygen 1.3.4.