summaryrefslogtreecommitdiffstats
path: root/libldetect.h
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-12-15 15:19:16 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-12-15 15:19:16 +0000
commit58dab80c5625896156e4d31fb39778556c88eb32 (patch)
tree372c912b71a146260e12a13205fa44c0c3378fa3 /libldetect.h
parent1e92adca428885ca5ec4a47a07cf25106c33974d (diff)
downloadldetect-58dab80c5625896156e4d31fb39778556c88eb32.tar
ldetect-58dab80c5625896156e4d31fb39778556c88eb32.tar.gz
ldetect-58dab80c5625896156e4d31fb39778556c88eb32.tar.bz2
ldetect-58dab80c5625896156e4d31fb39778556c88eb32.tar.xz
ldetect-58dab80c5625896156e4d31fb39778556c88eb32.zip
creation
Diffstat (limited to 'libldetect.h')
-rw-r--r--libldetect.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libldetect.h b/libldetect.h
new file mode 100644
index 0000000..a8d9053
--- /dev/null
+++ b/libldetect.h
@@ -0,0 +1,24 @@
+/******************************************************************************/
+/* pci ************************************************************************/
+/******************************************************************************/
+struct pci_entry {
+ unsigned short vendor; /* PCI vendor id */
+ unsigned short device;
+
+ unsigned short subvendor; /* 0xffff if not probe_type'd or no subid */
+ unsigned short subdevice; /* 0xffff if not probe_type'd or no subid */
+ unsigned short class; /* 0 if not probe_type'd */
+
+ char *module;
+ char *text;
+};
+struct pci_entries {
+ struct pci_entry *entries;
+ int nb;
+};
+
+
+extern struct pci_entries pci_probe(int probe_type); /* probe_type is boolean */
+extern void pci_free(struct pci_entries entries);
+
+extern const char *pci_class2text(unsigned short class);