mirror of
https://github.com/mintycube/dwmblocks.git
synced 2024-10-22 14:05:47 +02:00
17 lines
313 B
C
17 lines
313 B
C
#pragma once
|
|
|
|
#include <signal.h>
|
|
|
|
#include "block.h"
|
|
|
|
#define TIMER_SIGNAL SIGALRM
|
|
|
|
typedef struct {
|
|
unsigned int time;
|
|
const unsigned int tick;
|
|
const unsigned int reset_value;
|
|
} timer;
|
|
|
|
timer timer_new(const block *const blocks, const unsigned short block_count);
|
|
int timer_arm(timer *const timer);
|