X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fnames.h;h=d7e71ff7183a8edd67123b4edb4e24d6ec10db17;hb=623ed0e1afa959013f4d7e507dd12cb9e4811577;hp=1ecea8bdc39608299d3a85fe5595877524afb7c6;hpb=752d4d9ab7e567ea972a16f33d2a210ae90b7051;p=pciutils.git diff --git a/lib/names.h b/lib/names.h index 1ecea8b..d7e71ff 100644 --- a/lib/names.h +++ b/lib/names.h @@ -1,7 +1,7 @@ /* * 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. */ @@ -33,6 +33,7 @@ enum id_entry_src { SRC_UNKNOWN, SRC_CACHE, SRC_NET, + SRC_HWDB, SRC_LOCAL, }; @@ -62,7 +63,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);