| OLD | NEW |
| 1 /* Definitions used by the GDB event loop. | 1 /* Definitions used by the GDB event loop. |
| 2 Copyright (C) 1999-2000, 2007-2012 Free Software Foundation, Inc. | 2 Copyright (C) 1999-2013 Free Software Foundation, Inc. |
| 3 Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions. | 3 Written by Elena Zannoni <ezannoni@cygnus.com> of Cygnus Solutions. |
| 4 | 4 |
| 5 This file is part of GDB. | 5 This file is part of GDB. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| 11 | 11 |
| 12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 Corollary tasks are the creation and deletion of event sources. */ | 68 Corollary tasks are the creation and deletion of event sources. */ |
| 69 | 69 |
| 70 typedef void *gdb_client_data; | 70 typedef void *gdb_client_data; |
| 71 struct async_signal_handler; | 71 struct async_signal_handler; |
| 72 struct async_event_handler; | 72 struct async_event_handler; |
| 73 typedef void (handler_func) (int, gdb_client_data); | 73 typedef void (handler_func) (int, gdb_client_data); |
| 74 typedef void (sig_handler_func) (gdb_client_data); | 74 typedef void (sig_handler_func) (gdb_client_data); |
| 75 typedef void (async_event_handler_func) (gdb_client_data); | 75 typedef void (async_event_handler_func) (gdb_client_data); |
| 76 typedef void (timer_handler_func) (gdb_client_data); | 76 typedef void (timer_handler_func) (gdb_client_data); |
| 77 | 77 |
| 78 /* Where to add an event onto the event queue, by queue_event. */ | |
| 79 typedef enum | |
| 80 { | |
| 81 /* Add at tail of queue. It will be processed in first in first | |
| 82 out order. */ | |
| 83 TAIL, | |
| 84 /* Add at head of queue. It will be processed in last in first | |
| 85 out order. */ | |
| 86 HEAD | |
| 87 } | |
| 88 queue_position; | |
| 89 | |
| 90 /* Exported functions from event-loop.c */ | 78 /* Exported functions from event-loop.c */ |
| 91 | 79 |
| 80 extern void initialize_event_loop (void); |
| 92 extern void start_event_loop (void); | 81 extern void start_event_loop (void); |
| 93 extern int gdb_do_one_event (void); | 82 extern int gdb_do_one_event (void); |
| 94 extern void delete_file_handler (int fd); | 83 extern void delete_file_handler (int fd); |
| 95 extern void add_file_handler (int fd, handler_func *proc, | 84 extern void add_file_handler (int fd, handler_func *proc, |
| 96 gdb_client_data client_data); | 85 gdb_client_data client_data); |
| 97 extern struct async_signal_handler * | 86 extern struct async_signal_handler * |
| 98 create_async_signal_handler (sig_handler_func *proc, | 87 create_async_signal_handler (sig_handler_func *proc, |
| 99 gdb_client_data client_data); | 88 gdb_client_data client_data); |
| 100 extern void delete_async_signal_handler (struct async_signal_handler **); | 89 extern void delete_async_signal_handler (struct async_signal_handler **); |
| 101 extern int create_timer (int milliseconds, | 90 extern int create_timer (int milliseconds, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 gdb_client_data client_data); | 124 gdb_client_data client_data); |
| 136 | 125 |
| 137 /* Remove the event source pointed by HANDLER_PTR created by | 126 /* Remove the event source pointed by HANDLER_PTR created by |
| 138 CREATE_ASYNC_EVENT_HANDLER from the event loop, and release it. */ | 127 CREATE_ASYNC_EVENT_HANDLER from the event loop, and release it. */ |
| 139 extern void | 128 extern void |
| 140 delete_async_event_handler (struct async_event_handler **handler_ptr); | 129 delete_async_event_handler (struct async_event_handler **handler_ptr); |
| 141 | 130 |
| 142 /* Call the handler from HANDLER the next time through the event | 131 /* Call the handler from HANDLER the next time through the event |
| 143 loop. */ | 132 loop. */ |
| 144 extern void mark_async_event_handler (struct async_event_handler *handler); | 133 extern void mark_async_event_handler (struct async_event_handler *handler); |
| OLD | NEW |