dwmblocks-custom/include/timer.h

20 lines
352 B
C
Raw Permalink Normal View History

#ifndef TIMER_H
#define TIMER_H
#include <signal.h>
2023-10-25 16:30:08 +02:00
#include "block.h"
#define TIMER_SIGNAL SIGALRM
typedef struct {
unsigned int time;
const unsigned int tick;
const unsigned int reset_value;
} timer;
2023-10-25 16:30:08 +02:00
timer timer_new(const block *const blocks, const unsigned short block_count);
int timer_arm(timer *const timer);
#endif // TIMER_H