pci_set_name_list_path(a, PCI_PATH_IDS_DIR "/" PCI_IDS, 0);
#ifdef PCI_USE_DNS
pci_define_param(a, "net.domain", PCI_ID_DOMAIN, "DNS domain used for resolving of ID's");
- pci_define_param(a, "net.cache_path", "~/.pciids-cache", "Name of the ID cache file");
+ pci_define_param(a, "net.cache_name", "~/.pciids-cache", "Name of the ID cache file");
a->id_lookup_mode = PCI_LOOKUP_CACHE;
#endif
for(i=0; i<PCI_ACCESS_MAX; i++)
static char *get_cache_name(struct pci_access *a)
{
char *name, *buf;
-
- name = pci_get_param(a, "net.cache_path");
- if (!name || name[0])
+
+ name = pci_get_param(a, "net.cache_name");
+ if (!name || !name[0])
return NULL;
if (strncmp(name, "~/", 2))
return name;
buf = pci_malloc(a, strlen(pw->pw_dir) + strlen(name+1) + 1);
sprintf(buf, "%s%s", pw->pw_dir, name+1);
- pci_set_param_internal(a, "net.cache_path", buf, 0);
+ pci_set_param_internal(a, "net.cache_name", buf, 0);
return buf;
}