From 2ad4f6c98465577159b3fa07df24dac37ee5a0e6 Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Thu, 24 Mar 2011 23:48:29 +0100 Subject: enumerate dvb devices with udev so every adapter is found even if not "in a row" You can use the udev property "dynamite_ignore" to preserve a device from being attached. With the udev property "dynamite_instanceid" the devices can be associated with different vdr instances. --- udev.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'udev.h') diff --git a/udev.h b/udev.h index e3c82ea..2286b0f 100644 --- a/udev.h +++ b/udev.h @@ -3,6 +3,8 @@ #include +#include + class cUdevListEntry { private: struct udev_list_entry *listEntry; @@ -15,7 +17,7 @@ public: const char *GetValue(void) const; }; -class cUdevDevice { +class cUdevDevice : public cListObject { private: struct udev_device *device; bool doUnref; @@ -38,6 +40,8 @@ public: static struct udev *Init(void); static void Free(void); static cUdevDevice *GetDeviceFromDevName(const char *DevName); + static cUdevDevice *GetDeviceFromSysPath(const char *SysPath); + static cList *EnumDevices(const char *Subsystem, const char *Property, const char *Value); }; #endif // __DYNAMITEUDEV_H -- cgit v1.2.3