1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
/*
Copyright (c) 2005 X.Org Foundation L.L.C.
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
/*
* $Header: /cvs/xtest/xtest/xts5/include/XtTestProto.h,v 1.4 2007-10-15 20:44:37 anholt Exp $
*
* Copyright (c) 2004 The Open Group
* Copyright (c) Applied Testing and Technology, Inc. 1993, 1994, 1995
* Copyright (c) 88open Consortium, Ltd. 1990, 1991, 1992, 1993
* All Rights Reserved.
*
* Project: VSW5
*
* File: xts5/include/XtTestProto.h
*
* Description:
* Library routine prototypes for xts5 specific to the Xt tests
*
* Modifications:
* $Log: XtTestProto.h,v $
* Revision 1.4 2007-10-15 20:44:37 anholt
* Bug #8081: Fix bad prototypes that broke xtest on I32LP64.
*
* While here, fix some printf formatting.
*
* Submitted by: Gordon Jin <gordon.jin@intel.com>
*
* Revision 1.3 2005-11-03 08:42:00 jmichael
* clean up all vsw5 paths to use xts5 instead.
*
* Revision 1.2 2005/04/21 09:40:42 ajosey
* resync to VSW5.1.5
*
* Revision 8.2 2005/01/14 11:18:10 gwc
* Updated copyright notice
*
* Revision 8.1 2004/02/12 16:33:57 gwc
* Changed return type of mem_limit() to size_t
*
* Revision 8.0 1998/12/23 23:23:31 mar
* Branch point for Release 5.0.2
*
* Revision 7.0 1998/10/30 22:41:36 mar
* Branch point for Release 5.0.2b1
*
* Revision 6.0 1998/03/02 05:16:01 tbr
* Branch point for Release 5.0.1
*
* Revision 5.0 1998/01/26 03:12:32 tbr
* Branch point for Release 5.0.1b1
*
* Revision 4.0 1995/12/15 08:38:32 tbr
* Branch point for Release 5.0.0
*
* Revision 3.2 1995/12/15 00:38:01 andy
* Prepare for GA Release
*
*/
#ifndef _XTTESTPROTO_H
#define _XTTESTPROTO_H
int avs_alloc_sem(void);
void avs_free_sem(void);
int avs_wait_event(int, int);
int avs_post_event(int);
int avs_get_event(int);
int avs_set_event(int, int);
char *err_lookup(int);
void lsah(int);
int wait_for(pid_t, int);
int avs_signal(int, void (*)(int));
int avs_set_alarm(int);
int avs_clear_alarm(void);
int avs_expect_alarm(void);
int avs_ignore_alarm(void);
int push_stdout(char*, char*);
void pop_stdout(void);
int push_stderr(char*, char*);
void pop_stderr(void);
void push_to_devnull(char*, char*);
int restore_from_devnull(void);
char *get_token(char*, char*);
char *get_nth_token(char *, char *, int);
void uwerrno(char*);
void fwerrno(char*);
void ferrno(char*);
void vsw_debug(int, char *, char *);
void vsw_debug_enter(char *, char *);
void vsw_debug_exit(char *, char *);
Widget avs_xt_def(char *string);
char *title(char *);
void PostMenu(Widget, XtPointer, XButtonEvent*);
void ConfigureDimension(Widget, Widget);
void DestroyTree(Widget, XtPointer, XtPointer);
size_t mem_limit(void);
void alloc_handler(String, String, String, String, String*, Cardinal*);
Widget avs_xt_hier(char*, char*);
Widget avs_xt_hier_no_warn(char*, char*);
Widget avs_xt_hier_args(char *, char *, char **, int);
Widget avs_xt_hier_def(char*, char*);
Widget avs_xt_init(char*, char**, int);
Widget avs_xt_tree(Widget);
Widget CreateMainWidget(Widget);
Widget CreateDrawWidget(Widget);
Widget CreateFormWidget(Widget);
Widget CreateScrollWidget(Widget);
Widget CreateRowColWidget(Widget);
Widget CreateFrameWidget(Widget);
Widget CreatePanedWidget(Widget);
Widget CreateBoxWidget(Widget);
Widget CreateLabelWidget(char *, Widget);
Widget CreatePushButtonGadget(char*, Widget);
Widget CreateMenuShellWidget(Widget);
Widget CreateDialogShellWidget(Widget);
Window avs_xext_init(void);
void avs_xext_close(void);
int check_dec(long, long, char*);
int check_not_dec(long, long, char*);
int check_str(char *, char *, char *);
int check_char(char, char, char *);
int check_size(char *, char *, size_t, size_t);
void x_event_name(int);
void send_event_time(Widget, int, long, Boolean, Time);
void send_event(Widget, int, long, Boolean);
void send_event_mask_time(Display *, Window, unsigned long, int, KeyCode, XEvent *, Time);
void send_event_mask(Display *, Window, unsigned long, int, KeyCode, XEvent *);
int x_handler(Display*);
void xt_handler(String, String, String, String, String*, Cardinal*);
int x_unexperr(Display*, XErrorEvent*);
/*from xtest library*/
void initconfig(void);
void report(char *fmt, ...);
void trace(char *fmt, ...);
void report_purpose(int);
void report_assertion(char *);
void report_strategy(char *);
#endif /* _XTTESTPROTO_H */
|