GDBserver
|
00001 /* Event loop machinery for the remote server for GDB. 00002 Copyright (C) 1993-2013 Free Software Foundation, Inc. 00003 00004 This file is part of GDB. 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 3 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 00018 00019 #ifndef EVENT_LOOP_H 00020 #define EVENT_LOOP_H 00021 00022 typedef void *gdb_client_data; 00023 typedef int (handler_func) (int, gdb_client_data); 00024 typedef int (callback_handler_func) (gdb_client_data); 00025 00026 extern void delete_file_handler (gdb_fildes_t fd); 00027 extern void add_file_handler (gdb_fildes_t fd, handler_func *proc, 00028 gdb_client_data client_data); 00029 extern int append_callback_event (callback_handler_func *proc, 00030 gdb_client_data client_data); 00031 extern void delete_callback_event (int id); 00032 00033 extern void start_event_loop (void); 00034 extern void initialize_event_loop (void); 00035 00036 #endif /* EVENT_LOOP_H */