/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/plugin.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:
53
53
    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);
54
54
    if (!model_info) return model_info;
55
55
 
56
 
    if (model_info->interface_version != PCILIB_EVENT_INTERFACE_VERSION) {
 
56
    if ((PCILIB_VERSION_GET_MAJOR(model_info->interface_version) != PCILIB_VERSION_MAJOR)||(PCILIB_VERSION_GET_MINOR(model_info->interface_version) != PCILIB_VERSION_MINOR)) {
57
57
        pcilib_warning("Plugin %s exposes outdated interface version (%lu), pcitool supports (%lu)", model_info->name, model_info->interface_version, PCILIB_EVENT_INTERFACE_VERSION);
58
58
        return NULL;
59
59
    }