codexion / include / state.h 60 commits
12-07-2026
29 lines 1.3 kB
 1/* ************************************************************************** */
 2/*                                                                            */
 3/*                                                        :::      ::::::::   */
 4/*   state.h                                            :+:      :+:    :+:   */
 5/*                                                    +:+ +:+         +:+     */
 6/*   By: mleitao <marvin@42.fr>                     +#+  +:+       +#+        */
 7/*                                                +#+#+#+#+#+   +#+           */
 8/*   Created: 2026/07/07 01:05:26 by mleitao           #+#    #+#             */
 9/*   Updated: 2026/07/12 00:04:15 by mleitao          ###   ########.fr       */
10/*                                                                            */
11/* ************************************************************************** */
12
13#ifndef STATE_H
14# define STATE_H
15
16# include "codexion.h"
17
18# define MSG_TAKEN "has taken a dongle"
19# define MSG_COMPILE "is compiling"
20# define MSG_DEBUG "is debugging"
21# define MSG_REFACTOR "is refactoring"
22# define MSG_BURNOUT "burned out"
23
24void	log_state(t_sim *sim, unsigned int id, const char *msg);
25void	log_burnout(t_sim *sim, unsigned int id);
26int		sim_stopped(t_sim *sim);
27void	sim_set_stop(t_sim *sim);
28
29#endif