File: wlr_input_device.h

package info (click to toggle)
wlroots 0.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,592 kB
  • sloc: ansic: 75,766; xml: 2,739; sh: 33; makefile: 23
file content (20 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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