From 6f2cd6be1d44fb13d75f66418c9a27b01b77a53d Mon Sep 17 00:00:00 2001 From: spv Date: Mon, 17 Nov 2025 16:47:32 -0500 Subject: add WIP report gen, systemd user service, work time tracker, sig handling --- src/common.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/common.h (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h new file mode 100644 index 0000000..6562643 --- /dev/null +++ b/src/common.h @@ -0,0 +1,24 @@ +#ifndef COMMON_H +#define COMMON_H + +#include +#include + +#include "config.h" +#include "logger.h" + +typedef struct { + double when; + int64_t what; +} keypress_t; + +typedef struct { + keypress_t* keys; + unsigned int length; + unsigned int size; +} keypresses_t; + +#define KEYPRESSES_START_SIZE 0x1000 // one page +#define KEYPRESSES_ADDITIONAL_SIZE 0x1000 // one page + +#endif -- cgit v1.2.3