How to migrate the X server?
Kay Sievers
kay.sievers at vrfy.org
Thu Jul 30 05:29:20 PDT 2009
On Thu, Jul 30, 2009 at 04:07, Martin Pitt<martin.pitt at ubuntu.com> wrote:
> Peter Hutterer [2009-07-30 14:13 +1000]:
>> The X server uses libhal to connect to HAL and asks it for the device list
>> (libhal_find_device_by_capability(.. "input" ...)
>
> The libudev counterpart would be udev_enumerate_*() [1] with scanning for
> the "input" subsystem, and then you could use
> udev_device_get_devtype() to check for "event" (I didn't test this,
> though).
I don't think "input" currently sets the device_type in the kernel,
and this will return NULL. But *_get_sysname() will return the name of
the device, where the prefix can be checked.
Kay
More information about the devkit-devel
mailing list