File: testrigcaps.c

package info (click to toggle)
hamlib 4.6.5-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,984 kB
  • sloc: ansic: 262,996; sh: 6,135; cpp: 1,578; perl: 876; makefile: 855; python: 148; awk: 58; xml: 26
file content (18 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <hamlib/rig.h>

// we have a const *char HAMLIB_CHECK_RIG_CAPS defined in most backends
// if the structure ever changes it will produce an error during rig_init
int main()
{
    printf("Check rig_caps offsets\n");
    printf("If structure changes will break shared library API\n");
    RIG *rig;
    rig_set_debug_level(RIG_DEBUG_ERR);
    rig = rig_init(1);

    if (rig == NULL) { return 1; }

    printf("Offsets are OK (i.e. have not changed)\n");
    return 0;
}