From 5387063faa68d774e2f586e6d8284520f3cde12f Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 2 May 2015 14:45:42 +0200 Subject: Include version information in all API descriptions --- pcilib/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcilib/plugin.c') diff --git a/pcilib/plugin.c b/pcilib/plugin.c index 12dbf1d..3202e95 100644 --- a/pcilib/plugin.c +++ b/pcilib/plugin.c @@ -53,7 +53,7 @@ const pcilib_model_description_t *pcilib_get_plugin_model(pcilib_t *pcilib, void model_info = ((const pcilib_model_description_t *(*)(pcilib_t *pcilib, unsigned short vendor_id, unsigned short device_id, const char *model))get_model)(pcilib, vendor_id, device_id, model); if (!model_info) return model_info; - if (model_info->interface_version != PCILIB_EVENT_INTERFACE_VERSION) { + if ((PCILIB_VERSION_GET_MAJOR(model_info->interface_version) != PCILIB_VERSION_MAJOR)||(PCILIB_VERSION_GET_MINOR(model_info->interface_version) != PCILIB_VERSION_MINOR)) { pcilib_warning("Plugin %s exposes outdated interface version (%lu), pcitool supports (%lu)", model_info->name, model_info->interface_version, PCILIB_EVENT_INTERFACE_VERSION); return NULL; } -- cgit v1.2.3