/* Test */ /* Generated with cbindgen:0.6.2 */ #include #include #include typedef enum { ActionKind_Map, ActionKind_Command, ActionKind_Mode, } ActionKind; typedef enum { HeadphoneButton_Play, HeadphoneButton_Up, HeadphoneButton_Down, } HeadphoneButton; typedef enum { MapKind_Map, MapKind_Command, } MapKind; typedef struct State State; typedef struct { const HeadphoneButton *buttons; size_t length; } Trigger; typedef struct { const char *action; const ActionKind *kind; const Trigger *in_mode; } CKeyActionResult; const CKeyActionResult *c_run_key_action(State *state, Trigger trigger, const Trigger *mode); void logger_init(void); void state_free(State *ptr); void state_load_map_group(State *ptr); State *state_new(void);