mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
types/wlr_input_device: move init and finish function to private API
This commit is contained in:
parent
1bb2631c5c
commit
cfed039c9a
20 changed files with 43 additions and 22 deletions
20
include/interfaces/wlr_input_device.h
Normal file
20
include/interfaces/wlr_input_device.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef INTERFACES_INPUT_DEVICE_H
|
||||
#define INTERFACES_INPUT_DEVICE_H
|
||||
|
||||
#include <wlr/types/wlr_input_device.h>
|
||||
|
||||
/**
|
||||
* Initializes a given wlr_input_device. Allocates memory for the name and sets
|
||||
* its vendor and product id to 0.
|
||||
* wlr_device must be non-NULL.
|
||||
*/
|
||||
void wlr_input_device_init(struct wlr_input_device *wlr_device,
|
||||
enum wlr_input_device_type type, const char *name);
|
||||
|
||||
/**
|
||||
* Cleans up all the memory owned by a given wlr_input_device and signals
|
||||
* the destroy event.
|
||||
*/
|
||||
void wlr_input_device_finish(struct wlr_input_device *wlr_device);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue