Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / xwin / winmsg.h
CommitLineData
a09e091a
JB
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
37void
38winDrvMsgVerb(int scrnIndex,
39 MessageType type, int verb, const char *format, ...)
40_X_ATTRIBUTE_PRINTF(4, 5);
41void
42winDrvMsg(int scrnIndex, MessageType type, const char *format, ...)
43_X_ATTRIBUTE_PRINTF(3, 4);
44void
45winMsgVerb(MessageType type, int verb, const char *format, ...)
46_X_ATTRIBUTE_PRINTF(3, 4);
47void
48winMsg(MessageType type, const char *format, ...)
49_X_ATTRIBUTE_PRINTF(2, 3);
50void
51winDebug(const char *format, ...)
52_X_ATTRIBUTE_PRINTF(1, 2);
53void
54winTrace(const char *format, ...)
55_X_ATTRIBUTE_PRINTF(1, 2);
56
57void
58winErrorFVerb(int verb, const char *format, ...)
59_X_ATTRIBUTE_PRINTF(2, 3);
60void winW32Error(int verb, const char *message);
61void winW32ErrorEx(int verb, const char *message, DWORD errorcode);
62void winDebugWin32Message(const char *function, HWND hwnd, UINT message,
63 WPARAM wParam, LPARAM lParam);
64
65#endif