[gdb/testsuite] Add PR gdb/26967 KFAIL in two more test-cases
[binutils-gdb.git] / sim / ppc / events.h
blob2a78d6ff00ff67037af71e31556937c6045769f7
1 /* This file is part of the program psim.
3 Copyright (C) 1994-1995, Andrew Cagney <cagney@highland.com.au>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, see <http://www.gnu.org/licenses/>.
21 #ifndef _EVENTS_H_
22 #define _EVENTS_H_
24 /* typedef struct _event_queue event_queue; */
25 /* typedef struct _event_entry_tag *event_entry_tag; */
27 typedef void event_handler(void *data);
29 INLINE_EVENTS\
30 (event_queue *) event_queue_create
31 (void);
33 INLINE_EVENTS\
34 (void) event_queue_init
35 (event_queue *queue);
38 /* (de)Schedule things to happen in the future. */
40 INLINE_EVENTS\
41 (event_entry_tag) event_queue_schedule
42 (event_queue *queue,
43 int64_t delta_time,
44 event_handler *handler,
45 void *data);
47 INLINE_EVENTS\
48 (event_entry_tag) event_queue_schedule_after_signal
49 (event_queue *queue,
50 int64_t delta_time,
51 event_handler *handler,
52 void *data);
54 INLINE_EVENTS\
55 (void) event_queue_deschedule
56 (event_queue *queue,
57 event_entry_tag event_to_remove);
60 /* progress time. In to parts so that if something is pending, the
61 caller has a chance to save any cached state */
63 INLINE_EVENTS\
64 (int) event_queue_tick
65 (event_queue *queue);
67 INLINE_EVENTS\
68 (void) event_queue_process
69 (event_queue *events);
72 /* local concept of time */
74 INLINE_EVENTS\
75 (int64_t) event_queue_time
76 (event_queue *queue);
78 #endif /* _EVENTS_H_ */