/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcitool/cli.c

  • Committer: Suren A. Chilingaryan
  • Date: 2015-05-02 12:45:42 UTC
  • Revision ID: csa@suren.me-20150502124542-u57tbtwoix0qfhb8
Include version information in all API descriptions

Show diffs side-by-side

added added

removed removed

Lines of Context:
550
550
                info = pcilib_get_plugin_model(handle, plugin, 0, 0, NULL);
551
551
                if (info) {
552
552
                    printf(" %s\n", entry->d_name);
553
 
                    for (j = 0; info[j].name; j++)
554
 
                        printf("   %-12s - %s\n", info[j].name, info[j].description?info[j].description:"");
 
553
                    for (j = 0; info[j].name; j++) {
 
554
                        pcilib_version_t version = info[j].api->version;
 
555
                        printf("   %-12s %u.%u.%u - %s\n", info[j].name, 
 
556
                                PCILIB_VERSION_GET_MAJOR(version), 
 
557
                                PCILIB_VERSION_GET_MINOR(version),
 
558
                                PCILIB_VERSION_GET_MICRO(version),
 
559
                                info[j].description?info[j].description:"");
 
560
                    }
555
561
                }
556
562
                pcilib_plugin_close(plugin);
557
563
            } else {