blob: 39ba2983f0ff2016a4ac9cfb6efd8d4a4460ec47 (
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
|
/* Test */
/* Generated with cbindgen:0.6.2 */
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
typedef enum {
HeadphoneButton_Play,
HeadphoneButton_Up,
HeadphoneButton_Down,
} HeadphoneButton;
typedef enum {
MapKind_Map,
MapKind_Command,
} MapKind;
typedef struct Config Config;
typedef struct State State;
typedef struct {
const HeadphoneButton *buttons;
size_t length;
} Trigger;
void c_run_key_action(State *state, Trigger trigger, const Trigger *mode);
void config_free(Config *ptr);
void logger_init(void);
const Config *parse_args(const char *args, size_t length);
void state_free(State *ptr);
void state_load_map_group(State *ptr);
State *state_new(void);
|