GDBserver
Typedefs | Functions
event-loop.h File Reference

Go to the source code of this file.

Typedefs

typedef void * gdb_client_data
 
typedef int( handler_func) (int, gdb_client_data)
 
typedef int( callback_handler_func) (gdb_client_data)
 

Functions

void delete_file_handler (gdb_fildes_t fd)
 
void add_file_handler (gdb_fildes_t fd, handler_func *proc, gdb_client_data client_data)
 
int append_callback_event (callback_handler_func *proc, gdb_client_data client_data)
 
void delete_callback_event (int id)
 
void start_event_loop (void)
 
void initialize_event_loop (void)
 

Typedef Documentation

typedef int( callback_handler_func) (gdb_client_data)

Definition at line 24 of file event-loop.h.

typedef void* gdb_client_data

Definition at line 22 of file event-loop.h.

typedef int( handler_func) (int, gdb_client_data)

Definition at line 23 of file event-loop.h.

Function Documentation

void add_file_handler ( gdb_fildes_t  fd,
handler_func proc,
gdb_client_data  client_data 
)

Definition at line 325 of file event-loop.c.

References create_file_handler(), GDB_EXCEPTION, and GDB_READABLE.

Referenced by handle_accept_event(), linux_async(), and remote_open().

int append_callback_event ( callback_handler_func proc,
gdb_client_data  client_data 
)
void delete_callback_event ( int  id)

Definition at line 219 of file event-loop.c.

References callback_list, callback_event::id, and callback_event::next.

Referenced by reset_readchar().

void delete_file_handler ( gdb_fildes_t  fd)
void initialize_event_loop ( void  )

Definition at line 158 of file event-loop.c.

References gdb_event_xfree(), and QUEUE_alloc.

Referenced by captured_main().

void start_event_loop ( void  )

Definition at line 537 of file event-loop.c.

References process_callback(), process_event(), and wait_for_event().

Referenced by captured_main().