mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-05 20:38:04 +02:00
eis: drop the device->id now that it's all protocol-wrapped
This commit is contained in:
parent
6ed610e30e
commit
619b83220d
2 changed files with 6 additions and 3 deletions
|
|
@ -177,9 +177,14 @@ _public_
|
|||
OBJECT_IMPLEMENT_GETTER(eis_device, width, uint32_t);
|
||||
_public_
|
||||
OBJECT_IMPLEMENT_GETTER(eis_device, height, uint32_t);
|
||||
OBJECT_IMPLEMENT_GETTER(eis_device, id, uint32_t);
|
||||
OBJECT_IMPLEMENT_GETTER_AS_REF(eis_device, proto_object, const struct brei_object *);
|
||||
|
||||
uint32_t
|
||||
eis_device_get_id(struct eis_device *device)
|
||||
{
|
||||
return device->proto_object.id;
|
||||
}
|
||||
|
||||
_public_ struct eis_seat *
|
||||
eis_device_get_seat(struct eis_device *device)
|
||||
{
|
||||
|
|
@ -471,7 +476,6 @@ eis_seat_new_device(struct eis_seat *seat)
|
|||
assert(device->proto_object.version != 0);
|
||||
list_init(&device->proto_object.link);
|
||||
|
||||
device->id = device->proto_object.id; /* FIXME: remove once all messages are in the device */
|
||||
device->name = xstrdup("unnamed device");
|
||||
device->capabilities = 0;
|
||||
device->state = EIS_DEVICE_STATE_NEW;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ struct eis_device {
|
|||
struct eis_keyboard *keyboard;
|
||||
struct eis_touchscreen *touchscreen;
|
||||
|
||||
uint32_t id;
|
||||
char *name;
|
||||
enum eis_device_state state;
|
||||
uint32_t capabilities;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue