~nloomans/ft_select

ref: a4ef762331941c5e33670f7bf81eb964fb761edb ft_select/inc/handle.h -rw-r--r-- 1.2 KiB
a4ef7623Noah Loomans fix build on linux 1 year, 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* ************************************************************************** */
/*                                                                            */
/*                                                        ::::::::            */
/*   ft_select                                          :+:    :+:            */
/*                                                     +:+                    */
/*   Author: Noah Loomans                             +#+                     */
/*           <nloomans@student.codam.nl>             +#+                      */
/*                                                  #+#    #+#                */
/*   License: GPLv3                                ########   odam.nl         */
/*                                                                            */
/* ************************************************************************** */

#ifndef HANDLE_H
# define HANDLE_H

# include "action.h"
# include "read.h"

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

extern const struct s_handle_signal_map	g_handle_signal_map[32];
extern const t_action 					g_handle_key_map[READ_TYPE_AMOUNT][256];

#endif