From 9743e08ea07778ff9a009b95f8d37220a6893d5e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 27 Oct 2018 15:45:43 +0200 Subject: Clean up `cbindgen.toml` Remove some unnecessary things. We aren't using `MapKind` any more, so it can be removed. --- cbindgen.toml | 17 +++++++---------- 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 #include -#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 { -- cgit v1.2.3