A small library for hardware-related things has been created and uses libudev for listing all available devices.