Files
dwmblocks-async/include/timer.h
Utkarsh Verma bc84d094cd Rewrite the entire code-base
The following changes are focused upon:
- Modularity
- Doing away with globals
- No heap allocations
- Better command line interface
- Switch from Xlib to XCB
- More verbose type definitions
- Implement a single-file config by utilising X-macros
2023-10-25 17:37:23 +05:30

15 lines
238 B
C

#pragma once
#include <signal.h>
#define TIMER_SIGNAL SIGALRM
typedef struct {
unsigned int time;
const unsigned int tick;
const unsigned int reset_value;
} timer;
timer timer_new(void);
int timer_arm(timer *const timer);