]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/names.h
Names: Fixed a rare bug in loading of pci.ids
[pciutils.git] / lib / names.h
index 1ecea8bdc39608299d3a85fe5595877524afb7c6..b34e3e645e6fe30842919aac0cd4ec6247a2100e 100644 (file)
@@ -1,9 +1,11 @@
 /*
  *     The PCI Library -- ID to Name Translation
  *
- *     Copyright (c) 1997--2008 Martin Mares <mj@ucw.cz>
+ *     Copyright (c) 1997--2014 Martin Mares <mj@ucw.cz>
  *
- *     Can be freely distributed and used under the terms of the GNU GPL.
+ *     Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ *     SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #define MAX_LINE 1024
@@ -33,6 +35,7 @@ enum id_entry_src {
   SRC_UNKNOWN,
   SRC_CACHE,
   SRC_NET,
+  SRC_HWDB,
   SRC_LOCAL,
 };
 
@@ -62,7 +65,13 @@ char *pci_id_lookup(struct pci_access *a, int flags, int cat, int id1, int id2,
 int pci_id_cache_load(struct pci_access *a, int flags);
 void pci_id_cache_dirty(struct pci_access *a);
 void pci_id_cache_flush(struct pci_access *a);
+void pci_id_hash_free(struct pci_access *a);
 
 /* names-dns.c */
 
 char *pci_id_net_lookup(struct pci_access *a, int cat, int id1, int id2, int id3, int id4);
+
+/* names-hwdb.c */
+
+char *pci_id_hwdb_lookup(struct pci_access *a, int cat, int id1, int id2, int id3, int id4);
+void pci_id_hwdb_free(struct pci_access *a);