diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-09-05 08:24:53 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-09-05 08:24:53 -0400 |
commit | 0cdd7fac02f77689fc80f795e13e38447e6c6a09 (patch) | |
tree | 5f20ad224957c2419ac2ddeef8b536609083ab3b /examples/config.h | |
parent | c5a2014a2ff3e22086c0d911f3bf771c5d5fb112 (diff) |
pointer.c: refactor device configuration
Diffstat (limited to 'examples/config.h')
-rw-r--r-- | examples/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/config.h b/examples/config.h index bc2e101b..93cf08c8 100644 --- a/examples/config.h +++ b/examples/config.h @@ -4,6 +4,7 @@ #define _POSIX_C_SOURCE 200112L #endif #include <wlr/types/wlr_output_layout.h> +#include <wlr/types/wlr_input_device.h> struct output_config { char *name; @@ -41,4 +42,11 @@ void example_config_destroy(struct example_config *config); struct output_config *example_config_get_output(struct example_config *config, struct wlr_output *output); +/** + * Get configuration for the device. If the device is not configured, returns + * NULL. + */ +struct device_config *example_config_get_device(struct example_config *config, + struct wlr_input_device *device); + #endif |