blob: c5e326b5432599b8b9c35500245ad439b5ee6306 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#ifndef DOME_KEY_MAP_H
#define DOME_KEY_MAP_H
/* Generated with cbindgen:0.6.6 */
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
typedef enum {
HeadphoneButton_Play,
HeadphoneButton_Up,
HeadphoneButton_Down,
} HeadphoneButton;
typedef struct State State;
typedef struct {
bool reload;
bool daemon;
bool version;
char *license;
} Args;
typedef uint16_t Milliseconds;
typedef struct {
Args args;
Milliseconds timeout;
} Config;
typedef struct {
const HeadphoneButton *buttons;
size_t length;
} Trigger;
Config *c_parse_args(const char *const *args, size_t length, Config *config_ptr);
void c_run_key_action(State *state, Trigger trigger);
void config_free(Config *ptr);
Config *config_get(void);
extern void dkess_press_key(int16_t key, CGEventFlags modifier_flags);
void do_trial(void);
void logger_init(void);
void state_free(State *ptr);
void state_load_map_group(State *ptr);
State *state_new(void);
#endif /* DOME_KEY_MAP_H */
|