aboutsummaryrefslogtreecommitdiff
path: root/src/block.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-07-09 17:02:42 +0200
committerFederico Angelilli <code@fedang.net>2024-07-09 17:02:42 +0200
commit0c567c67933cc48ac57f08167d88a57ce0504524 (patch)
treeda7c5ccc0935093cf5ecc661371db324ea0005cb /src/block.h
parent28adc6b395d2fb7545189636cec3651b9c2a5f73 (diff)
Add event handling
Diffstat (limited to 'src/block.h')
-rw-r--r--src/block.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block.h b/src/block.h
index 2179348..33fc797 100644
--- a/src/block.h
+++ b/src/block.h
@@ -32,7 +32,7 @@ typedef struct block block_t;
// Triggered when an event is directed towards the block
//
-typedef void (*block_event_t)(block_t *block, event_t *event);
+typedef void (*block_event_t)(block_t *block, event_t event);
// Regularly called depending on the inverval passed from the last update
//
@@ -47,7 +47,7 @@ struct block {
int line_width;
int x_padding, y_padding;
int min_width, max_width;
- int update_interval;
+ struct timespec update_interval;
struct timespec update_last;
block_update_t update_cb;
block_event_t event_cb;