/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* codexion.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: semebrah +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2026/03/22 18:07:06 by semebrah #+# #+# */ /* Updated: 2026/03/22 18:07:31 by semebrah ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef CODEXION_H # define CODEXION_H # include # include typedef struct s_args { int number_of_coders; int time_to_burnout; int time_to_compile; int time_to_debug; int time_to_refactor; int number_of_compiles_required; int dongle_cooldown; int scheduler; } t_args; typedef struct s_data { struct timeval start; int coder_id; t_args args; pthread_mutex_t *left_dongle; pthread_mutex_t *right_dongle; } t_data; t_args *parse_arguments(int count, char **args); #endif