Revert "winex11.drv: Optimise getting the bits of a DIB after calling SetDIBits."
[wine] / programs / winetest / winetest.h
1 /*
2  * winetest definitions
3  *
4  * Copyright 2003 Dimitrie O. Paun
5  * Copyright 2003 Ferenc Wagner
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20  */
21
22 #ifndef __WINETESTS_H
23 #define __WINETESTS_H
24
25 #include <stdio.h>
26 #include <stdlib.h>
27 #include <stdarg.h>
28
29 void fatal (const char* msg);
30 void warning (const char* msg);
31 void *xmalloc (size_t len);
32 void *xrealloc (void *op, size_t len);
33 char *xstrdup( const char *str );
34 void xprintf (const char *fmt, ...);
35 char *vstrmake (size_t *lenp, va_list ap);
36 char *strmake (size_t *lenp, ...);
37 int goodtagchar (char c);
38 const char *findbadtagchar (const char *tag);
39
40 int send_file (const char *name);
41
42 extern HANDLE logfile;
43
44 /* GUI definitions */
45
46 #include <windows.h>
47
48 enum report_type {
49     R_STATUS = 0,
50     R_PROGRESS,
51     R_STEP,
52     R_DELTA,
53     R_TAG,
54     R_DIR,
55     R_OUT,
56     R_WARNING,
57     R_ERROR,
58     R_FATAL,
59     R_ASK,
60     R_TEXTMODE,
61     R_QUIET
62 };
63
64 #define MAXTAGLEN 20
65 extern char *tag;
66 int guiAskTag (void);
67 int report (enum report_type t, ...);
68
69 #endif /* __WINETESTS_H */