mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
pointer.c: refactor device configuration
This commit is contained in:
parent
c5a2014a2f
commit
0cdd7fac02
3 changed files with 33 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue