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 --- pcitool/cli.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pcitool') diff --git a/pcitool/cli.c b/pcitool/cli.c index a8f1e35..75249f1 100644 --- a/pcitool/cli.c +++ b/pcitool/cli.c @@ -550,8 +550,14 @@ void Info(pcilib_t *handle, const pcilib_model_description_t *model_info) { info = pcilib_get_plugin_model(handle, plugin, 0, 0, NULL); if (info) { printf(" %s\n", entry->d_name); - for (j = 0; info[j].name; j++) - printf(" %-12s - %s\n", info[j].name, info[j].description?info[j].description:""); + for (j = 0; info[j].name; j++) { + pcilib_version_t version = info[j].api->version; + printf(" %-12s %u.%u.%u - %s\n", info[j].name, + PCILIB_VERSION_GET_MAJOR(version), + PCILIB_VERSION_GET_MINOR(version), + PCILIB_VERSION_GET_MICRO(version), + info[j].description?info[j].description:""); + } } pcilib_plugin_close(plugin); } else { -- cgit v1.2.3