diff options
Diffstat (limited to 'src/common.h')
| -rw-r--r-- | src/common.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 <sys/time.h> +#include <stdint.h> + +#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 |
