head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.30; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.19; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.50; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxlog.h File Reference

Go to the source code of this file.

Enumerations

enum  dmxLogLevel {
  dmxDebug, dmxInfo, dmxWarning, dmxError,
  dmxFatal
}

Functions

dmxLogLevel dmxSetLogLevel (dmxLogLevel newLevel)
dmxLogLevel dmxGetLogLevel (void)
void dmxLog (dmxLogLevel logLevel, const char *format,...)
void dmxLogCont (dmxLogLevel logLevel, const char *format,...)
const char * dmxEventName (int type)
void dmxLogOutput (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogOutputCont (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogOutputWarning (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogInput (DMXInputInfo *dmxInput, const char *format,...)
void dmxLogInputCont (DMXInputInfo *dmxInput, const char *format,...)
void dmxLogArgs (dmxLogLevel logLevel, int argc, char **argv)
void dmxLogVisual (DMXScreenInfo *dmxScreen, XVisualInfo *vi, int defaultVisual)
const char * dmxXInputEventName (int type)


Detailed Description

This header is included by all files that need to use the DMX logging facilities.

Enumeration Type Documentation

enum dmxLogLevel
 

Logging levels -- output is tunable with dmxSetLogLevel.

Enumeration values:
dmxDebug  Usually verbose debugging info
dmxInfo  Non-warning information
dmxWarning  A warning that may indicate DMX will not function as the user intends.
dmxError  A non-fatal error that probably indicates DMX will not function as desired.
dmxFatal  A fatal error that will cause DMX to shut down.


Function Documentation

const char* dmxEventName int  type  ) 
 

Translate an event type into a human-readable string.

dmxLogLevel dmxGetLogLevel void   ) 
 

Returns the log level set by dmxLogLevel.

void dmxLog dmxLogLevel  logLevel,
const char *  format,
... 
 

Log the specified message at the specified logLevel. format can be a printf-like format expression.

void dmxLogArgs dmxLogLevel  logLevel,
int  argc,
char **  argv
 

Print argc messages, each describing an element in argv. This is maingly for debugging purposes.

void dmxLogCont dmxLogLevel  logLevel,
const char *  format,
... 
 

Continue a log message without printing the message prefix.

void dmxLogInput DMXInputInfo dmxInput,
const char *  format,
... 
 

Log an informational message (at level dmxInfo) related to input. The message prefix will contain information from dmxInput.

void dmxLogInputCont DMXInputInfo dmxInput,
const char *  format,
... 
 

Continue a message related to input without printing the message prefix.

void dmxLogOutput DMXScreenInfo dmxScreen,
const char *  format,
... 
 

Log an informational message (at level dmxInfo) related to ouput. The message prefix will contain backend information from dmxScreen.

void dmxLogOutputCont DMXScreenInfo dmxScreen,
const char *  format,
... 
 

Continue a message related to output without printing the message prefix.

void dmxLogOutputWarning DMXScreenInfo dmxScreen,
const char *  format,
... 
 

Log a warning message (at level dmxWarning) related to output. The message prefix will contain backend information from dmxScreen.

void dmxLogVisual DMXScreenInfo dmxScreen,
XVisualInfo *  vi,
int  defaultVisual
 

Print messages at level dmxInfo describing the visuals in vi.

dmxLogLevel dmxSetLogLevel dmxLogLevel  newLevel  ) 
 

Set the default level for logging to dmxLogLevel. Returns the previous log level.

const char* dmxXInputEventName int  type  ) 
 

Translate a (normalized) XInput event type into a human-readable string.


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of xorg-server-1.4.2 @ text @@ 1.1.1.2 log @import xorg-server 1.9.2. important changes since 1.6.5 include: - built-in symbol visibility, default not export - fixes for various crashes - many fixes for XI2, EXA, dix, render, glx, xkb, EDID, randr, Xv, resource handling, Xext, vfb, xfree86 / vga and composite support. - fixes several memory leaks - many many documentation updates - record extension enabled - no longer looks for XF86Config files @ text @d9 15 a23 37

dmxlog.h File Reference

Go to the source code of this file.

Enumerations

enum  dmxLogLevel {
  dmxDebug, dmxInfo, dmxWarning, dmxError,
  dmxFatal
a24 49

Functions

dmxLogLevel dmxSetLogLevel (dmxLogLevel newLevel)
dmxLogLevel dmxGetLogLevel (void)
void dmxLog (dmxLogLevel logLevel, const char *format,...)
void dmxLogCont (dmxLogLevel logLevel, const char *format,...)
const char * dmxEventName (int type)
void dmxLogOutput (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogOutputCont (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogOutputWarning (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogInput (DMXInputInfo *dmxInput, const char *format,...)
void dmxLogInputCont (DMXInputInfo *dmxInput, const char *format,...)
void dmxLogArgs (dmxLogLevel logLevel, int argc, char **argv)
void dmxLogVisual (DMXScreenInfo *dmxScreen, XVisualInfo *vi, int defaultVisual)
const char * dmxXInputEventName (int type)

Detailed Description

This header is included by all files that need to use the DMX logging facilities.


Enumeration Type Documentation

Logging levels -- output is tunable with dmxSetLogLevel.

Enumerator:
dmxDebug 

Usually verbose debugging info

dmxInfo 

Non-warning information

dmxWarning 

A warning that may indicate DMX will not function as the user intends.

dmxError 

A non-fatal error that probably indicates DMX will not function as desired.

dmxFatal 

A fatal error that will cause DMX to shut down.

d26 24 a49 19

Function Documentation

const char* dmxEventName ( int  type  ) 

Translate an event type into a human-readable string.

d51 1 a51 1

Referenced by dmxConsoleUpdateFineCursor(), dmxDump(), and dmxEnqueue().

d53 8 a60 6
d62 43 a104 6 d106 1 d108 27 a134 3

Returns the log level set by dmxLogLevel.

d136 20 a155 8

References dmxCurrentLogLevel.

dmxLogLevel dmxGetLogLevel ( void   ) 
d157 4 a160 4 a162 1 d164 3 a166 2 a168 1 d170 3 a172 2 d176 2 a177 2 d179 1 d181 19 a199 14

Log the specified message at the specified logLevel. format can be a printf-like format expression.

References dmxHeader(), and dmxMessage().

Referenced by ddxProcessArgument(), dmxAddDevice(), dmxAttachScreen(), dmxBackendCollectEvents(), dmxBackendInitPrivate(), dmxBECreateColormap(), dmxBECreateCursor(), dmxBELoadFont(), dmxBERestorePixmap(), dmxBERestoreRenderGlyph(), dmxBESavePixmap(), dmxCheckFunctionKeys(), dmxCheckSpecialKeys(), dmxCommonOthOn(), dmxCommonRestoreState(), dmxComputeWidthHeight(), dmxConfigAddDisplay(), dmxConfigAddInput(), dmxConfigConfigure(), dmxConfigCopyData(), dmxConfigCopyFromWall(), dmxConfigFromCommandLine(), dmxConfigFromConfigFile(), dmxConfigReadFile(), dmxConfigStoreConfig(), dmxConfigStoreDisplay(), dmxConfigStoreFile(), dmxConfigStoreInput(), dmxConfigStoreXInput(), dmxConfigWriteFile(), dmxConnectionBlockCallback(), dmxConsoleCreateEmptyCursor(), dmxConsoleDrawWindows(), dmxConsoleFunctions(), dmxConsoleInit(), dmxConsoleUpdateFineCursor(), dmxDetachScreen(), dmxDeviceOnOff(), dmxDisplayInit(), dmxErrorHandler(), dmxFixup(), dmxGetButtonMapping(), dmxGetFontPath(), dmxInitOrigins(), dmxInitOverlap(), dmxInputCopyLocal(), dmxInputInit(), dmxInputLogDevices(), dmxInputScanForExtensions(), dmxLogArgs(), dmxLogVisual(), dmxMapInsert(), dmxOnScreen(), dmxPopulateLocal(), dmxPropertyCheckOtherWindows(), dmxPropertyIterate(), dmxPropertySameDisplay(), dmxPropertyWindow(), dmxReInitOrigins(), dmxSigioRegister(), dmxStatCallback(), dmxSwitchReturn(), dmxSync(), dmxSyncInit(), dmxTranslateAndEnqueueExtEvent(), dmxTryComputeScreenOrigins(), dmxUpdateWindowInformation(), dmxWakeupHandler(), InitInput(), InitOutput(), and othUSBGetInfo().

void dmxLog ( dmxLogLevel  logLevel, const char *  format,   ... )
d201 4 a204 4 a206 1 d208 3 a210 2 a212 1 d214 3 a216 2 d220 2 a221 2 d223 1 d225 19 a243 12

Print argc messages, each describing an element in argv. This is maingly for debugging purposes.

References dmxLog().

void dmxLogArgs ( dmxLogLevel  logLevel, int  argc, char **  argv )
d245 4 a248 4 a250 1 d252 3 a254 2 a256 1 d258 3 a260 2 d264 2 a265 2 d267 1 d269 19 a287 14

Continue a log message without printing the message prefix.

References dmxMessage().

Referenced by dmxInputLogDevices(), and dmxStatCallback().

void dmxLogCont ( dmxLogLevel  logLevel, const char *  format,   ... )
d289 4 a292 4 a294 1 d296 3 a298 2 a300 1 d302 3 a304 2 d308 2 a309 2 d311 1 d313 19 a331 14

Log an informational message (at level dmxInfo) related to input. The message prefix will contain information from dmxInput.

References dmxHeader(), dmxInfo, and dmxMessage().

Referenced by dmxAddDevice(), dmxCommonKbdGetInfo(), dmxCommonRestoreState(), dmxCommonSaveState(), dmxEnqueue(), dmxInputAttachBackend(), dmxInputAttachConsole(), dmxInputAttachOld(), dmxInputDetach(), dmxInputInit(), dmxInputScanForExtensions(), and dmxKeyboardOn().

void dmxLogInput ( DMXInputInfo dmxInput, const char *  format,   ... )
d333 4 a336 4 a338 1 d340 3 a342 2 a344 1 d346 3 a348 2 d352 2 a353 2 d355 1 d357 19 a375 14

Continue a message related to input without printing the message prefix.

References dmxInfo, and dmxMessage().

Referenced by dmxKeyboardOn().

void dmxLogInputCont ( DMXInputInfo dmxInput, const char *  format,   ... )
d377 4 a380 4 a382 1 d384 3 a386 2 a388 1 d390 3 a392 2 d396 2 a397 2 d399 1 d401 19 a419 14

Log an informational message (at level dmxInfo) related to ouput. The message prefix will contain backend information from dmxScreen.

References dmxHeader(), dmxInfo, and dmxMessage().

Referenced by _dmxDPMSInit(), dmxAttachScreen(), dmxDetachScreen(), dmxGetScreenAttribs(), dmxInitOrigins(), dmxInitOverlap(), dmxLogVisual(), dmxPrintScreenInfo(), dmxPropertyCheckOtherServers(), and dmxReInitOrigins().

void dmxLogOutput ( DMXScreenInfo dmxScreen, const char *  format,   ... )
d421 4 a424 4 a426 1 d428 3 a430 2 a432 1 d434 3 a436 2 d440 2 a441 2 d443 1 d445 19 a463 14

Continue a message related to output without printing the message prefix.

References dmxInfo, and dmxMessage().

Referenced by dmxInitOverlap(), dmxPrintOverlap(), and dmxPrintScreenInfo().

void dmxLogOutputCont ( DMXScreenInfo dmxScreen, const char *  format,   ... )
d465 4 a468 4 a470 1 d472 3 a474 2 a476 1 d478 3 a480 2 d484 2 a485 2 d487 1 d489 19 a507 14

Log a warning message (at level dmxWarning) related to output. The message prefix will contain backend information from dmxScreen.

References dmxHeader(), dmxMessage(), and dmxWarning.

Referenced by dmxGetScreenAttribs(), dmxPrintScreenInfo(), and dmxPropertyCheckOtherServers().

void dmxLogOutputWarning ( DMXScreenInfo dmxScreen, const char *  format,   ... )
d509 4 a512 4 a514 1 d516 3 a518 2 a520 1 d522 3 a524 2 d528 2 a529 2 d531 1 d533 27 a559 3

Print messages at level dmxInfo describing the visuals in vi.

d561 27 a587 17

References dmxInfo, dmxLog(), and dmxLogOutput().

Referenced by dmxConnectionBlockCallback(), and dmxGetVisualInfo().

void dmxLogVisual ( DMXScreenInfo dmxScreen, XVisualInfo *  vi, int  defaultVisual )
a588 4
dmxLogLevel dmxSetLogLevel ( dmxLogLevel  newLevel  ) 

Set the default level for logging to dmxLogLevel. Returns the previous log level.

a589 16

References dmxCurrentLogLevel, and dmxFatal.

d591 14 a604 7

Translate a (normalized) XInput event type into a human-readable string.

@ 1.1.1.3 log @initial import of xorg-server 1.10.3. highlights include: - fixes xorg bugs 29969, 30367, 30527, 30267, 30260, 29046, 30260, 31548, 28672, 24887, 32115, 21457, 32436, 21827, 28414, 24703, 32803, 16318, 33449, 33324, 33929, 35082, 35209, 36146, 36119 - many additional NULL checks - adjustments related to input ABI 12 - *lots* of dead code removal - vga arbitrator fixes - GL fixes - EDID fixes - conversion to using asprintf() in many places - many fixes from valgrind, compiler warnings see these for more details: http://lists.freedesktop.org/archives/xorg-announce/2011-February/001612.html http://lists.freedesktop.org/archives/xorg-announce/2011-April/001646.html http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html http://lists.freedesktop.org/archives/xorg-announce/2011-July/001710.html @ text @d9 3 a11 2 d63 3 a65 3

Detailed Description

This header is included by all files that need to use the DMX logging facilities.


Enumeration Type Documentation

d107 3 a109 2 d128 3 a130 2 d149 2 a150 2 d155 2 a156 2 d161 2 a162 2 d167 1 a167 1 d176 1 a176 1

Referenced by ddxProcessArgument(), dmxAddDevice(), dmxAttachScreen(), dmxBackendCollectEvents(), dmxBackendInitPrivate(), dmxBECreateColormap(), dmxBECreateCursor(), dmxBELoadFont(), dmxBERestorePixmap(), dmxBERestoreRenderGlyph(), dmxBESavePixmap(), dmxCheckFunctionKeys(), dmxCheckSpecialKeys(), dmxCommonOthOn(), dmxCommonRestoreState(), dmxComputeWidthHeight(), dmxConfigAddDisplay(), dmxConfigAddInput(), dmxConfigConfigure(), dmxConfigCopyData(), dmxConfigCopyFromWall(), dmxConfigFromCommandLine(), dmxConfigFromConfigFile(), dmxConfigReadFile(), dmxConfigStoreConfig(), dmxConfigStoreDisplay(), dmxConfigStoreFile(), dmxConfigStoreInput(), dmxConfigStoreXInput(), dmxConfigWriteFile(), dmxConnectionBlockCallback(), dmxConsoleCreateEmptyCursor(), dmxConsoleDrawWindows(), dmxConsoleFunctions(), dmxConsoleInit(), dmxConsoleUpdateFineCursor(), dmxDetachScreen(), dmxDeviceOnOff(), dmxDisplayInit(), dmxErrorHandler(), dmxFixup(), dmxGetButtonMapping(), dmxGetFontPath(), dmxInitOrigins(), dmxInitOverlap(), dmxInputCopyLocal(), dmxInputInit(), dmxInputLogDevices(), dmxLogArgs(), dmxLogVisual(), dmxMapInsert(), dmxOnScreen(), dmxPopulateLocal(), dmxPropertyCheckOtherWindows(), dmxPropertyIterate(), dmxPropertySameDisplay(), dmxPropertyWindow(), dmxReInitOrigins(), dmxSigioRegister(), dmxStatCallback(), dmxSwitchReturn(), dmxSync(), dmxSyncInit(), dmxTranslateAndEnqueueExtEvent(), dmxTryComputeScreenOrigins(), dmxUpdateWindowInformation(), dmxWakeupHandler(), InitInput(), InitOutput(), and othUSBGetInfo().

d187 2 a188 2 d193 2 a194 2 d199 2 a200 2 d205 1 a205 1 d223 2 a224 2 d229 2 a230 2 d235 2 a236 2 d241 1 a241 1 d261 2 a262 2 d267 2 a268 2 d273 2 a274 2 d279 1 a279 1 d299 2 a300 2 d305 2 a306 2 d311 2 a312 2 d317 1 a317 1 d337 2 a338 2 d343 2 a344 2 d349 2 a350 2 d355 1 a355 1 d375 2 a376 2 d381 2 a382 2 d387 2 a388 2 d393 1 a393 1 d413 2 a414 2 d419 2 a420 2 d425 2 a426 2 d431 1 a431 1 d451 2 a452 2 d457 2 a458 2 d463 2 a464 2 d469 1 a469 1 d489 3 a491 2 d510 3 a512 2 a522 4
const char* dmxXInputEventName ( int  type  ) 
enum  dmxLogLevel {
  dmxDebug, d44 1 a44 1   dmxFatal d49 13 a61 13
dmxLogLevel dmxSetLogLevel (dmxLogLevel newLevel)
dmxLogLevel dmxGetLogLevel (void)
void dmxLog (dmxLogLevel logLevel, const char *format,...)
void dmxLogCont (dmxLogLevel logLevel, const char *format,...)
const char * dmxEventName (int type)
void dmxLogOutput (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogOutputCont (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogOutputWarning (DMXScreenInfo *dmxScreen, const char *format,...)
void dmxLogInput (DMXInputInfo *dmxInput, const char *format,...)
void dmxLogInputCont (DMXInputInfo *dmxInput, const char *format,...)
void dmxLogArgs (dmxLogLevel logLevel, int argc, char **argv)
void dmxLogVisual (DMXScreenInfo *dmxScreen, XVisualInfo *vi, int defaultVisual)
const char * dmxXInputEventName (int type)
int  type)void  )dmxLogLevel  logLevel, const char *  format,   ... dmxLogLevel  logLevel, int  argc, char **  argv dmxLogLevel  logLevel, const char *  format,   ... DMXInputInfo dmxInput, const char *  format,   ... DMXInputInfo dmxInput, const char *  format,   ... DMXScreenInfo dmxScreen, const char *  format,   ... DMXScreenInfo dmxScreen, const char *  format,   ... DMXScreenInfo dmxScreen, const char *  format,   ... DMXScreenInfo dmxScreen, XVisualInfo *  vi, int  defaultVisual dmxLogLevel  newLevel)int  type)