diff options
| author | Teddy Wing | 2018-10-05 19:16:23 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2018-10-05 19:16:23 +0200 | 
| commit | 961b3b0b2d33a2c632fbc093b61e2c2d4dc07f70 (patch) | |
| tree | 8c9cde38a296b6509780b1200472490465df485f /dome_key_map.h | |
| parent | 42fa76b3472c2dae8fd6db6649058e54e9f67003 (diff) | |
| download | dome-key-map-961b3b0b2d33a2c632fbc093b61e2c2d4dc07f70.tar.bz2 | |
Add an FFI bridge to the `parse_args()` function
This will allow us to parse command line arguments starting from a C
argv array (hopefully).
Diffstat (limited to 'dome_key_map.h')
| -rw-r--r-- | dome_key_map.h | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/dome_key_map.h b/dome_key_map.h index e3dcf60..39ba298 100644 --- a/dome_key_map.h +++ b/dome_key_map.h @@ -17,6 +17,8 @@ typedef enum {    MapKind_Command,  } MapKind; +typedef struct Config Config; +  typedef struct State State;  typedef struct { @@ -26,8 +28,12 @@ typedef struct {  void c_run_key_action(State *state, Trigger trigger, const Trigger *mode); +void config_free(Config *ptr); +  void logger_init(void); +const Config *parse_args(const char *args, size_t length); +  void state_free(State *ptr);  void state_load_map_group(State *ptr); | 
