X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fnames.h;h=b34e3e645e6fe30842919aac0cd4ec6247a2100e;hb=06f9ecf36e529695feea35038e15233dffe37bb7;hp=81c373fe023cbc628f079066aaf1dbd144ddeff1;hpb=90f8c88626289b0a713abc41759e8bebe6c20ddb;p=pciutils.git diff --git a/lib/names.h b/lib/names.h index 81c373f..b34e3e6 100644 --- a/lib/names.h +++ b/lib/names.h @@ -1,9 +1,11 @@ /* * The PCI Library -- ID to Name Translation * - * Copyright (c) 1997--2008 Martin Mares + * Copyright (c) 1997--2014 Martin Mares * - * 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, }; @@ -67,3 +70,8 @@ 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);