105b261ecSmrg/* 205b261ecSmrg *Copyright (C) 1994-2000 The XFree86 Project, Inc. All Rights Reserved. 305b261ecSmrg * 405b261ecSmrg *Permission is hereby granted, free of charge, to any person obtaining 505b261ecSmrg * a copy of this software and associated documentation files (the 605b261ecSmrg *"Software"), to deal in the Software without restriction, including 705b261ecSmrg *without limitation the rights to use, copy, modify, merge, publish, 805b261ecSmrg *distribute, sublicense, and/or sell copies of the Software, and to 905b261ecSmrg *permit persons to whom the Software is furnished to do so, subject to 1005b261ecSmrg *the following conditions: 1105b261ecSmrg * 1205b261ecSmrg *The above copyright notice and this permission notice shall be 1305b261ecSmrg *included in all copies or substantial portions of the Software. 1405b261ecSmrg * 1505b261ecSmrg *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 1605b261ecSmrg *EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1705b261ecSmrg *MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 1805b261ecSmrg *NONINFRINGEMENT. IN NO EVENT SHALL THE XFREE86 PROJECT BE LIABLE FOR 1905b261ecSmrg *ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 2005b261ecSmrg *CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 2105b261ecSmrg *WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2205b261ecSmrg * 2305b261ecSmrg *Except as contained in this notice, the name of the XFree86 Project 2405b261ecSmrg *shall not be used in advertising or otherwise to promote the sale, use 2505b261ecSmrg *or other dealings in this Software without prior written authorization 2605b261ecSmrg *from the XFree86 Project. 2705b261ecSmrg * 2805b261ecSmrg * Authors: Alexander Gottwald 2905b261ecSmrg */ 3005b261ecSmrg 311b5d61b8Smrg#ifndef __WIN_MSG_H__ 321b5d61b8Smrg#define __WIN_MSG_H__ 331b5d61b8Smrg 3435c4bbdfSmrg#include <X11/Xwindows.h> 351b5d61b8Smrg#include <X11/Xfuncproto.h> 3635c4bbdfSmrg 3705b261ecSmrg/* 3805b261ecSmrg * Function prototypes 3905b261ecSmrg */ 4005b261ecSmrg 411b5d61b8Smrg#ifdef XWIN_XF86CONFIG 4235c4bbdfSmrgvoid 4335c4bbdfSmrgwinDrvMsgVerb(int scrnIndex, 4435c4bbdfSmrg MessageType type, int verb, const char *format, ...) 4535c4bbdfSmrg_X_ATTRIBUTE_PRINTF(4, 5); 4635c4bbdfSmrgvoid 4735c4bbdfSmrgwinDrvMsg(int scrnIndex, MessageType type, const char *format, ...) 4835c4bbdfSmrg_X_ATTRIBUTE_PRINTF(3, 4); 491b5d61b8Smrg#endif 501b5d61b8Smrg 511b5d61b8Smrg#define winMsg LogMessage 521b5d61b8Smrg 5335c4bbdfSmrgvoid 5435c4bbdfSmrgwinDebug(const char *format, ...) 5535c4bbdfSmrg_X_ATTRIBUTE_PRINTF(1, 2); 5635c4bbdfSmrgvoid 5735c4bbdfSmrgwinTrace(const char *format, ...) 5835c4bbdfSmrg_X_ATTRIBUTE_PRINTF(1, 2); 5905b261ecSmrg 6035c4bbdfSmrgvoid 6135c4bbdfSmrgwinErrorFVerb(int verb, const char *format, ...) 6235c4bbdfSmrg_X_ATTRIBUTE_PRINTF(2, 3); 6305b261ecSmrgvoid winW32Error(int verb, const char *message); 6405b261ecSmrgvoid winW32ErrorEx(int verb, const char *message, DWORD errorcode); 6535c4bbdfSmrgvoid winDebugWin32Message(const char *function, HWND hwnd, UINT message, 6635c4bbdfSmrg WPARAM wParam, LPARAM lParam); 6705b261ecSmrg 6805b261ecSmrg#endif 69