diff options
| -rw-r--r-- | cbindgen.toml | 17 | ||||
| -rw-r--r-- | dome_key_map.h | 9 |
2 files changed, 7 insertions, 19 deletions
diff --git a/cbindgen.toml b/cbindgen.toml index a96748c..765b02f 100644 --- a/cbindgen.toml +++ b/cbindgen.toml @@ -1,18 +1,15 @@ language = "C" -header = "/* Test */" include_guard = "DOME_KEY_MAP_H" include_version = true -# [parse] -# include = ["dome-key-map"] - [export] -include = ["HeadphoneButton", "MapKind"] -# item_types = ["enums", "structs", "functions"] -item_types = ["constants", "globals", "enums", "structs", "unions", "typedefs", "opaque", "functions"] - -[export.rename] -"run_key_action" = "hello_run" +item_types = [ + "enums", + "functions", + "opaque", + "structs", + "typedefs", +] [enum] prefix_with_name = true diff --git a/dome_key_map.h b/dome_key_map.h index cc6303b..d9ba8d8 100644 --- a/dome_key_map.h +++ b/dome_key_map.h @@ -1,5 +1,3 @@ -/* Test */ - #ifndef DOME_KEY_MAP_H #define DOME_KEY_MAP_H @@ -9,19 +7,12 @@ #include <stdlib.h> #include <stdbool.h> -#define DAYS_REMAINING 30 - typedef enum { HeadphoneButton_Play, HeadphoneButton_Up, HeadphoneButton_Down, } HeadphoneButton; -typedef enum { - MapKind_Map, - MapKind_Command, -} MapKind; - typedef struct State State; typedef struct { |
