blob: 2b9046caebce311808d43591ac59a94448a1452b [file] [log] [blame]
Alexandre Julliard9f71bd92003-12-04 02:01:39 +00001/*
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 Ernst360a3f92006-05-18 14:49:52 +020019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000020 */
21
22#ifndef __WINETESTS_H
23#define __WINETESTS_H
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <stdarg.h>
28
29void fatal (const char* msg);
30void warning (const char* msg);
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000031void xprintf (const char *fmt, ...);
Ferenc Wagner354f6622004-01-15 01:48:05 +000032char *vstrmake (size_t *lenp, va_list ap);
33char *strmake (size_t *lenp, ...);
Ferenc Wagnerff67da42005-04-18 09:54:24 +000034int goodtagchar (char c);
35const char *findbadtagchar (const char *tag);
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000036
37int send_file (const char *name);
38
Alexandre Julliard23296f02008-07-10 17:45:22 +020039extern HANDLE logfile;
40
Ferenc Wagner354f6622004-01-15 01:48:05 +000041/* GUI definitions */
42
43#include <windows.h>
44
Francois Gougete3aa47c2009-02-17 18:51:43 +010045#ifndef __WINE_ALLOC_SIZE
46#define __WINE_ALLOC_SIZE(x)
47#endif
Francois Gougetbf6b95e2009-05-17 13:28:23 +020048void *heap_alloc (size_t len) __WINE_ALLOC_SIZE(1);
49void *heap_realloc (void *op, size_t len) __WINE_ALLOC_SIZE(2);
50char *heap_strdup( const char *str );
51void heap_free (void *op);
Francois Gougete3aa47c2009-02-17 18:51:43 +010052
Ferenc Wagner354f6622004-01-15 01:48:05 +000053enum report_type {
54 R_STATUS = 0,
55 R_PROGRESS,
56 R_STEP,
57 R_DELTA,
Ferenc Wagner30dcc6b2005-03-31 15:22:41 +000058 R_TAG,
Ferenc Wagner354f6622004-01-15 01:48:05 +000059 R_DIR,
60 R_OUT,
Ferenc Wagner354f6622004-01-15 01:48:05 +000061 R_WARNING,
Ferenc Wagnerefc67252004-02-19 04:12:42 +000062 R_ERROR,
63 R_FATAL,
64 R_ASK,
65 R_TEXTMODE,
66 R_QUIET
Ferenc Wagner354f6622004-01-15 01:48:05 +000067};
68
Ferenc Wagnerbda2fe52005-04-11 16:10:01 +000069#define MAXTAGLEN 20
Ferenc Wagner30dcc6b2005-03-31 15:22:41 +000070extern char *tag;
Alexandre Julliard6fae8e12010-02-06 10:21:22 +010071extern char *email;
André Hentschelbee78502010-06-22 19:36:08 +020072extern BOOL aborting;
Ferenc Wagner30dcc6b2005-03-31 15:22:41 +000073int guiAskTag (void);
Alexandre Julliard6fae8e12010-02-06 10:21:22 +010074int guiAskEmail (void);
Ferenc Wagner354f6622004-01-15 01:48:05 +000075int report (enum report_type t, ...);
76
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000077#endif /* __WINETESTS_H */