#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