Alexandre Julliard | 9f71bd9 | 2003-12-04 02:01:39 +0000 | [diff] [blame] | 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 |
Jonathan Ernst | 360a3f9 | 2006-05-18 14:49:52 +0200 | [diff] [blame] | 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
Alexandre Julliard | 9f71bd9 | 2003-12-04 02:01:39 +0000 | [diff] [blame] | 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); |
Alexandre Julliard | 9f71bd9 | 2003-12-04 02:01:39 +0000 | [diff] [blame] | 31 | void xprintf (const char *fmt, ...); |
Ferenc Wagner | 354f662 | 2004-01-15 01:48:05 +0000 | [diff] [blame] | 32 | char *vstrmake (size_t *lenp, va_list ap); |
| 33 | char *strmake (size_t *lenp, ...); |
Ferenc Wagner | ff67da4 | 2005-04-18 09:54:24 +0000 | [diff] [blame] | 34 | int goodtagchar (char c); |
| 35 | const char *findbadtagchar (const char *tag); |
Alexandre Julliard | 9f71bd9 | 2003-12-04 02:01:39 +0000 | [diff] [blame] | 36 | |
| 37 | int send_file (const char *name); |
| 38 | |
Alexandre Julliard | 23296f0 | 2008-07-10 17:45:22 +0200 | [diff] [blame] | 39 | extern HANDLE logfile; |
| 40 | |
Ferenc Wagner | 354f662 | 2004-01-15 01:48:05 +0000 | [diff] [blame] | 41 | /* GUI definitions */ |
| 42 | |
| 43 | #include <windows.h> |
| 44 | |
Francois Gouget | e3aa47c | 2009-02-17 18:51:43 +0100 | [diff] [blame] | 45 | #ifndef __WINE_ALLOC_SIZE |
| 46 | #define __WINE_ALLOC_SIZE(x) |
| 47 | #endif |
Francois Gouget | bf6b95e | 2009-05-17 13:28:23 +0200 | [diff] [blame] | 48 | void *heap_alloc (size_t len) __WINE_ALLOC_SIZE(1); |
| 49 | void *heap_realloc (void *op, size_t len) __WINE_ALLOC_SIZE(2); |
| 50 | char *heap_strdup( const char *str ); |
| 51 | void heap_free (void *op); |
Francois Gouget | e3aa47c | 2009-02-17 18:51:43 +0100 | [diff] [blame] | 52 | |
Ferenc Wagner | 354f662 | 2004-01-15 01:48:05 +0000 | [diff] [blame] | 53 | enum report_type { |
| 54 | R_STATUS = 0, |
| 55 | R_PROGRESS, |
| 56 | R_STEP, |
| 57 | R_DELTA, |
Ferenc Wagner | 30dcc6b | 2005-03-31 15:22:41 +0000 | [diff] [blame] | 58 | R_TAG, |
Ferenc Wagner | 354f662 | 2004-01-15 01:48:05 +0000 | [diff] [blame] | 59 | R_DIR, |
| 60 | R_OUT, |
Ferenc Wagner | 354f662 | 2004-01-15 01:48:05 +0000 | [diff] [blame] | 61 | R_WARNING, |
Ferenc Wagner | efc6725 | 2004-02-19 04:12:42 +0000 | [diff] [blame] | 62 | R_ERROR, |
| 63 | R_FATAL, |
| 64 | R_ASK, |
| 65 | R_TEXTMODE, |
| 66 | R_QUIET |
Ferenc Wagner | 354f662 | 2004-01-15 01:48:05 +0000 | [diff] [blame] | 67 | }; |
| 68 | |
Ferenc Wagner | bda2fe5 | 2005-04-11 16:10:01 +0000 | [diff] [blame] | 69 | #define MAXTAGLEN 20 |
Ferenc Wagner | 30dcc6b | 2005-03-31 15:22:41 +0000 | [diff] [blame] | 70 | extern char *tag; |
Alexandre Julliard | 6fae8e1 | 2010-02-06 10:21:22 +0100 | [diff] [blame] | 71 | extern char *email; |
André Hentschel | bee7850 | 2010-06-22 19:36:08 +0200 | [diff] [blame] | 72 | extern BOOL aborting; |
Ferenc Wagner | 30dcc6b | 2005-03-31 15:22:41 +0000 | [diff] [blame] | 73 | int guiAskTag (void); |
Alexandre Julliard | 6fae8e1 | 2010-02-06 10:21:22 +0100 | [diff] [blame] | 74 | int guiAskEmail (void); |
Ferenc Wagner | 354f662 | 2004-01-15 01:48:05 +0000 | [diff] [blame] | 75 | int report (enum report_type t, ...); |
| 76 | |
Alexandre Julliard | 9f71bd9 | 2003-12-04 02:01:39 +0000 | [diff] [blame] | 77 | #endif /* __WINETESTS_H */ |