X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fpci.h;h=8becd76d9b7ceb843658364854fb8ff7d7e33eec;hb=09156b3b13e4940d14d390f7cbb1fd6bdea6a9d8;hp=8c208b406fdba92aea08ee6243e23c502a9d808f;hpb=c2b144efd9a82291ca7b1bb4f561f427ff18ed7e;p=pciutils.git diff --git a/lib/pci.h b/lib/pci.h index 8c208b4..8becd76 100644 --- a/lib/pci.h +++ b/lib/pci.h @@ -13,7 +13,7 @@ #include "header.h" #include "types.h" -#define PCI_LIB_VERSION 0x020200 +#define PCI_LIB_VERSION 0x020204 /* * PCI Access Structure @@ -43,6 +43,7 @@ struct pci_access { int writeable; /* Open in read/write mode */ int buscentric; /* Bus-centric view of the world */ char *id_file_name; /* Name of ID list file */ + int free_id_name; /* Set if id_file_name is malloced */ int numeric_ids; /* Enforce PCI_LOOKUP_NUMERIC (>1 => PCI_LOOKUP_MIXED) */ int debugging; /* Turn on debugging messages */ @@ -160,6 +161,7 @@ char *pci_lookup_name(struct pci_access *a, char *buf, int size, int flags, ...) int pci_load_name_list(struct pci_access *a); /* Called automatically by pci_lookup_*() when needed; returns success */ void pci_free_name_list(struct pci_access *a); /* Called automatically by pci_cleanup() */ +void pci_set_name_list_path(struct pci_access *a, char *name, int to_be_freed); enum pci_lookup_mode { PCI_LOOKUP_VENDOR = 1, /* Vendor name (args: vendorID) */