winetest.h 1.89 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * winetest definitions
 *
 * Copyright 2003 Dimitrie O. Paun
 * Copyright 2003 Ferenc Wagner
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * 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 23 24 25 26 27 28 29 30 31
 */

#ifndef __WINETESTS_H
#define __WINETESTS_H

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

void fatal (const char* msg);
void warning (const char* msg);
void xprintf (const char *fmt, ...);
32 33
char *vstrmake (size_t *lenp, va_list ap);
char *strmake (size_t *lenp, ...);
34 35
int goodtagchar (char c);
const char *findbadtagchar (const char *tag);
36 37 38

int send_file (const char *name);

39 40
extern HANDLE logfile;

41 42 43 44
/* GUI definitions */

#include <windows.h>

45 46 47
#ifndef __WINE_ALLOC_SIZE
#define __WINE_ALLOC_SIZE(x)
#endif
48 49 50 51
void *heap_alloc (size_t len) __WINE_ALLOC_SIZE(1);
void *heap_realloc (void *op, size_t len) __WINE_ALLOC_SIZE(2);
char *heap_strdup( const char *str );
void heap_free (void *op);
52

53 54 55 56 57
enum report_type {
    R_STATUS = 0,
    R_PROGRESS,
    R_STEP,
    R_DELTA,
58
    R_TAG,
59 60 61
    R_DIR,
    R_OUT,
    R_WARNING,
62 63 64 65 66
    R_ERROR,
    R_FATAL,
    R_ASK,
    R_TEXTMODE,
    R_QUIET
67 68
};

69
#define MAXTAGLEN 20
70
extern char *tag;
71
extern char *email;
72
extern BOOL aborting;
73
int guiAskTag (void);
74
int guiAskEmail (void);
75 76
int report (enum report_type t, ...);

77
#endif /* __WINETESTS_H */