pointer.c: refactor device configuration

This commit is contained in:
Tony Crisci 2017-09-05 08:24:53 -04:00
parent c5a2014a2f
commit 0cdd7fac02
3 changed files with 33 additions and 15 deletions

View file

@ -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