/* Version script for the libpci */

/*
 *  Visibility declarations in the source take precedence over this script,
 *  so we can boldly declare pci_* as public and still keep the internal
 *  functions properly hidden.
 *
 *  To preserve compatibility of Windows DLL file, always add new symbol at
 *  the end of file and never change order of symbols nor version sections.
 *  On Windows the last referenced version of the symbol is the default one.

 *  For PE/COFF targets this file is processed by ver2def.pl script and not
 *  by GNU LD linker like for ELF targets.
 */

LIBPCI_3.0 {
	global:
		pci_alloc;
		pci_cleanup;
		pci_fill_info;
		pci_filter_init;
		pci_filter_match;
		pci_filter_parse_id;
		pci_filter_parse_slot;
		pci_free_dev;
		pci_free_name_list;
		pci_get_dev;
		pci_get_method_name;
		pci_get_param;
		pci_id_cache_flush;
		pci_init;
		pci_load_name_list;
		pci_lookup_method;
		pci_lookup_name;
		pci_read_block;
		pci_read_byte;
		pci_read_long;
		pci_read_word;
		pci_scan_bus;
		pci_set_name_list_path;
		pci_set_param;
		pci_setup_cache;
		pci_walk_params;
		pci_write_block;
		pci_write_byte;
		pci_write_long;
		pci_write_word;
	local: *;
};

LIBPCI_3.1 {
	global:
		pci_fill_info;
		pci_find_cap;
		pci_read_vpd;
};

LIBPCI_3.2 {
	global:
		pci_fill_info;
};

LIBPCI_3.3 {
	global:
		pci_fill_info;
		pci_filter_init;
		pci_filter_match;
		pci_filter_parse_id;
		pci_filter_parse_slot;
};

LIBPCI_3.4 {
	global:
		pci_fill_info;
};

LIBPCI_3.5 {
	global:
		pci_init;
		pci_fill_info;
};

LIBPCI_3.6 {
	global:
		pci_get_string_property;
};

LIBPCI_3.7 {
	global:
		pci_find_cap_nr;
};

LIBPCI_3.8 {
	global:
		pci_fill_info;
		pci_filter_init;
		pci_filter_match;
		pci_filter_parse_id;
		pci_filter_parse_slot;
};
