check and show WARN if rig_caps structure doesn't match this tests for shared library incompatibility
| 555 | // check and show WARN if rig_caps structure doesn't match |
| 556 | // this tests for shared library incompatibility |
| 557 | static int rig_check_rig_caps() |
| 558 | { |
| 559 | int rc = RIG_OK; |
| 560 | |
| 561 | if (&caps_test.rig_model != caps_test_rig_model) |
| 562 | { |
| 563 | rc = -RIG_EINTERNAL; |
| 564 | rig_debug(RIG_DEBUG_WARN, "%s: shared library change#1\n", __func__); |
| 565 | } |
| 566 | |
| 567 | if (&caps_test.macro_name != caps_test_macro_name) |
| 568 | { |
| 569 | rc = -RIG_EINTERNAL; |
| 570 | rig_debug(RIG_DEBUG_WARN, "%s: shared library change#2\n", __func__); |
| 571 | } |
| 572 | |
| 573 | //if (rc != RIG_OK) |
| 574 | { |
| 575 | rig_debug(RIG_DEBUG_TRACE, "%s: p1=%p, p2=%p, rig_model=%p, macro_name=%p\n", |
| 576 | __func__, caps_test_rig_model, caps_test_macro_name, &caps_test.rig_model, |
| 577 | &caps_test.macro_name); |
| 578 | } |
| 579 | |
| 580 | return (rc); |
| 581 | } |
| 582 | |
| 583 | /* Final cleanup of rig structure |
| 584 | * |