summaryrefslogtreecommitdiffstats
path: root/libldetect.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-04-03 17:46:33 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-04-03 17:46:33 +0000
commit8569a28793faad34b2697591bdc6519c28462ca7 (patch)
treeb151f68b0fa897e989324fdf860595f1e7bbcdcb /libldetect.h
parentc332dcbce4b0030ece7a8bd88ac1bc15980ec47b (diff)
downloadldetect-8569a28793faad34b2697591bdc6519c28462ca7.tar
ldetect-8569a28793faad34b2697591bdc6519c28462ca7.tar.gz
ldetect-8569a28793faad34b2697591bdc6519c28462ca7.tar.bz2
ldetect-8569a28793faad34b2697591bdc6519c28462ca7.tar.xz
ldetect-8569a28793faad34b2697591bdc6519c28462ca7.zip
Add hid device enumerator
Diffstat (limited to 'libldetect.h')
-rw-r--r--libldetect.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libldetect.h b/libldetect.h
index 6ad02e7..d4d8a5c 100644
--- a/libldetect.h
+++ b/libldetect.h
@@ -71,5 +71,25 @@ extern struct dmi_entries dmi_probe(void);
extern void dmi_entries_free(struct dmi_entries entries);
extern char *dmidecode_file;
+/******************************************************************************/
+/* hid ************************************************************************/
+/******************************************************************************/
+struct hid_entry {
+ unsigned short vendor; /* PCI vendor id */
+ unsigned short product;
+ unsigned short version;
+
+ char *module;
+ char *text;
+};
+struct hid_entries {
+ struct hid_entry *entries;
+ unsigned int nb;
+};
+
+extern struct hid_entries hid_probe(void);
+extern void hid_entries_free(struct hid_entries *entries);
+extern const char *sysfs_hid_path;
+
#endif
#pragma GCC visibility pop