| 1 | #ifndef __WIN_MSG_H__ |
| 2 | #define __WIN_MSG_H__ |
| 3 | /* |
| 4 | *Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved. |
| 5 | * |
| 6 | *Permission is hereby granted, free of charge, to any person obtaining |
| 7 | * a copy of this software and associated documentation files (the |
| 8 | *"Software"), to deal in the Software without restriction, including |
| 9 | *without limitation the rights to use, copy, modify, merge, publish, |
| 10 | *distribute, sublicense, and/or sell copies of the Software, and to |
| 11 | *permit persons to whom the Software is furnished to do so, subject to |
| 12 | *the following conditions: |
| 13 | * |
| 14 | *The above copyright notice and this permission notice shall be |
| 15 | *included in all copies or substantial portions of the Software. |
| 16 | * |
| 17 | *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 | *EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 19 | *MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 20 | *NONINFRINGEMENT. IN NO EVENT SHALL THE XFREE86 PROJECT BE LIABLE FOR |
| 21 | *ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF |
| 22 | *CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 23 | *WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 24 | * |
| 25 | *Except as contained in this notice, the name of the XFree86 Project |
| 26 | *shall not be used in advertising or otherwise to promote the sale, use |
| 27 | *or other dealings in this Software without prior written authorization |
| 28 | *from the XFree86 Project. |
| 29 | * |
| 30 | * Authors: Alexander Gottwald |
| 31 | */ |
| 32 | |
| 33 | /* |
| 34 | * Function prototypes |
| 35 | */ |
| 36 | |
| 37 | void |
| 38 | winDrvMsgVerb(int scrnIndex, |
| 39 | MessageType type, int verb, const char *format, ...) |
| 40 | _X_ATTRIBUTE_PRINTF(4, 5); |
| 41 | void |
| 42 | winDrvMsg(int scrnIndex, MessageType type, const char *format, ...) |
| 43 | _X_ATTRIBUTE_PRINTF(3, 4); |
| 44 | void |
| 45 | winMsgVerb(MessageType type, int verb, const char *format, ...) |
| 46 | _X_ATTRIBUTE_PRINTF(3, 4); |
| 47 | void |
| 48 | winMsg(MessageType type, const char *format, ...) |
| 49 | _X_ATTRIBUTE_PRINTF(2, 3); |
| 50 | void |
| 51 | winDebug(const char *format, ...) |
| 52 | _X_ATTRIBUTE_PRINTF(1, 2); |
| 53 | void |
| 54 | winTrace(const char *format, ...) |
| 55 | _X_ATTRIBUTE_PRINTF(1, 2); |
| 56 | |
| 57 | void |
| 58 | winErrorFVerb(int verb, const char *format, ...) |
| 59 | _X_ATTRIBUTE_PRINTF(2, 3); |
| 60 | void winW32Error(int verb, const char *message); |
| 61 | void winW32ErrorEx(int verb, const char *message, DWORD errorcode); |
| 62 | void winDebugWin32Message(const char *function, HWND hwnd, UINT message, |
| 63 | WPARAM wParam, LPARAM lParam); |
| 64 | |
| 65 | #endif |