aboutsummaryrefslogtreecommitdiffstats
path: root/dome_key_map.h
blob: 88f7abf5ae5d62c7ff34808e8a94fea8c4782aaa (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
/* 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 {
  const char *action;
  const MapKind *kind;
} CKeyActionResult;

typedef struct {
  const HeadphoneButton *buttons;
  size_t length;
} Trigger;

const CKeyActionResult *c_run_key_action(Trigger trigger, const Trigger *mode);