Get rid of all global variables

This commit is contained in:
Utkarsh Verma 2023-10-25 20:00:08 +05:30
commit 10f7d9b8db
No known key found for this signature in database
GPG key ID: 7A4885A7162BDF20
13 changed files with 121 additions and 69 deletions

View file

@ -2,6 +2,8 @@
#include <signal.h>
#include "block.h"
#define TIMER_SIGNAL SIGALRM
typedef struct {
@ -10,5 +12,5 @@ typedef struct {
const unsigned int reset_value;
} timer;
timer timer_new(void);
timer timer_new(const block *const blocks, const unsigned short block_count);
int timer_arm(timer *const timer);