logind: add support for hidraw devices

Add support for opening /dev/hidraw devices via logind's TakeDevice().
Same semantics as our support for evdev devices, but it requires the
HIDIOCREVOKE ioctl in the kernel.
This commit is contained in:
Peter Hutterer
2024-10-03 09:36:57 +01:00
committed by Luca Boccassi
parent 16b50d4018
commit 305272ab2b
5 changed files with 47 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <linux/hidraw.h>
/* b31c9d9dc343146b9f4ce67b4eee748c49296e99 (6.12) */
#ifndef HIDIOCREVOKE
#define HIDIOCREVOKE _IOW('H', 0x0D, int)
#endif