gdb/gdbserver/event-loop.h - gdb

Data types defined

Macros defined

Source code

  1. /* Event loop machinery for the remote server for GDB.
  2.    Copyright (C) 1993-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #ifndef EVENT_LOOP_H
  15. #define EVENT_LOOP_H

  16. typedef void *gdb_client_data;
  17. typedef int (handler_func) (int, gdb_client_data);
  18. typedef int (callback_handler_func) (gdb_client_data);

  19. extern void delete_file_handler (gdb_fildes_t fd);
  20. extern void add_file_handler (gdb_fildes_t fd, handler_func *proc,
  21.                               gdb_client_data client_data);
  22. extern int append_callback_event (callback_handler_func *proc,
  23.                                    gdb_client_data client_data);
  24. extern void delete_callback_event (int id);

  25. extern void start_event_loop (void);
  26. extern void initialize_event_loop (void);

  27. #endif /* EVENT_LOOP_H */