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

@ -17,6 +17,8 @@ typedef struct {
pid_t fork_pid;
} block;
block block_new(const char *const command, const unsigned int interval,
const int signal);
int block_init(block *const block);
int block_deinit(block *const block);
int block_execute(block *const block, const uint8_t button);