From 8569a28793faad34b2697591bdc6519c28462ca7 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 3 Apr 2009 17:46:33 +0000 Subject: Add hid device enumerator --- libldetect.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libldetect.h') 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 -- cgit v1.2.1