~nloomans/ft_select

ref: 1d90313037b5c7d0545be79e58d8f50a102501ff ft_select/inc/event.h -rw-r--r-- 274 bytes
1d903130Noah Loomans handle CTRL+Z and fg 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef EVENT_H
# define EVENT_H

# include <stdbool.h>
# include "action.h"
# include "error.h"

struct				s_event_signal_map
{
	bool		*global;
	t_action	action;
	void		(*handler)(int signum);
};

t_error				event_init(void);
t_error				event_next(t_action *dest);

#endif