aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-10-27 15:45:43 +0200
committerTeddy Wing2018-10-27 15:45:43 +0200
commit9743e08ea07778ff9a009b95f8d37220a6893d5e (patch)
treeceefe9b3691eb6095feaec67afdf2d6a1e67703a
parent265912299942028f02773cbd54aa1b99c358f2ad (diff)
downloaddome-key-map-9743e08ea07778ff9a009b95f8d37220a6893d5e.tar.bz2
Clean up `cbindgen.toml`
Remove some unnecessary things. We aren't using `MapKind` any more, so it can be removed.
-rw-r--r--cbindgen.toml17
-rw-r--r--dome_key_map.h9
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 {