summaryrefslogtreecommitdiff
path: root/udev.h
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2011-03-24 23:48:29 +0100
committerLars Hanisch <dvb@flensrocker.de>2011-03-24 23:48:29 +0100
commit2ad4f6c98465577159b3fa07df24dac37ee5a0e6 (patch)
treece71e562044708ba5e6ab5c5574dc0b6c06f3064 /udev.h
parente03b81ff043b9e1d29da4d48e8971d7fe7e3eccc (diff)
downloadvdr-plugin-dynamite-2ad4f6c98465577159b3fa07df24dac37ee5a0e6.tar.gz
vdr-plugin-dynamite-2ad4f6c98465577159b3fa07df24dac37ee5a0e6.tar.bz2
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.
Diffstat (limited to 'udev.h')
-rw-r--r--udev.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/udev.h b/udev.h
index e3c82ea..2286b0f 100644
--- a/udev.h
+++ b/udev.h
@@ -3,6 +3,8 @@
#include <libudev.h>
+#include <vdr/tools.h>
+
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<cUdevDevice> *EnumDevices(const char *Subsystem, const char *Property, const char *Value);
};
#endif // __DYNAMITEUDEV_H