blob: 043e5ed8770e5f036bc2136d707e7b2338f75f54 [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);
31void *xmalloc (size_t len);
32void *xrealloc (void *op, size_t len);
Alexandre Julliard5e0a8152006-09-11 14:23:07 +020033char *xstrdup( const char *str );
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000034void xprintf (const char *fmt, ...);
Ferenc Wagner354f6622004-01-15 01:48:05 +000035char *vstrmake (size_t *lenp, va_list ap);
36char *strmake (size_t *lenp, ...);
Ferenc Wagnerff67da42005-04-18 09:54:24 +000037int goodtagchar (char c);
38const char *findbadtagchar (const char *tag);
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000039
40int send_file (const char *name);
41
Ferenc Wagner354f6622004-01-15 01:48:05 +000042/* GUI definitions */
43
44#include <windows.h>
45
46enum report_type {
47 R_STATUS = 0,
48 R_PROGRESS,
49 R_STEP,
50 R_DELTA,
Ferenc Wagner30dcc6b2005-03-31 15:22:41 +000051 R_TAG,
Ferenc Wagner354f6622004-01-15 01:48:05 +000052 R_DIR,
53 R_OUT,
Ferenc Wagner354f6622004-01-15 01:48:05 +000054 R_WARNING,
Ferenc Wagnerefc67252004-02-19 04:12:42 +000055 R_ERROR,
56 R_FATAL,
57 R_ASK,
58 R_TEXTMODE,
59 R_QUIET
Ferenc Wagner354f6622004-01-15 01:48:05 +000060};
61
Ferenc Wagnerbda2fe52005-04-11 16:10:01 +000062#define MAXTAGLEN 20
Ferenc Wagner30dcc6b2005-03-31 15:22:41 +000063extern char *tag;
64int guiAskTag (void);
Ferenc Wagner354f6622004-01-15 01:48:05 +000065int report (enum report_type t, ...);
66
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000067#endif /* __WINETESTS_H */