diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-19 18:41:02 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-21 10:10:04 -0400 |
commit | 53a8b4f127a370a84c81e0c91b8c6fce8b18842f (patch) | |
tree | 16cec5e29a41ede3be68b0d25f31773989b1cf28 /include/wlr/interfaces/wlr_keyboard.h | |
parent | fd5ad1589460db3e8663efb1b09eacae1fb5e760 (diff) |
Split out types.h and wlr/types.h
TODO: Update the code accordingly and move other types into the same
paradigm
Diffstat (limited to 'include/wlr/interfaces/wlr_keyboard.h')
-rw-r--r-- | include/wlr/interfaces/wlr_keyboard.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/wlr/interfaces/wlr_keyboard.h b/include/wlr/interfaces/wlr_keyboard.h new file mode 100644 index 00000000..1acc6428 --- /dev/null +++ b/include/wlr/interfaces/wlr_keyboard.h @@ -0,0 +1,15 @@ +#ifndef _WLR_INTERFACE_KEYBOARD_H +#define _WLR_INTERFACE_KEYBOARD_H +#include <wlr/types/wlr_keyboard.h> +#include <stdint.h> + +struct wlr_keyboard_impl { + void (*destroy)(struct wlr_keyboard_state *state); + void (*led_update)(struct wlr_keyboard_state *state, uint32_t leds); +}; + +struct wlr_keyboard *wlr_keyboard_create(struct wlr_keyboard_impl *impl, + struct wlr_keyboard_state *state); +void wlr_keyboard_destroy(struct wlr_keyboard *keyboard); + +#endif |