Hamlib/tests/testrigcaps.c

19 wiersze
497 B
C
Czysty Zwykły widok Historia

2021-01-20 16:46:07 +00:00
#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
2021-01-20 16:46:07 +00:00
int main()
{
printf("Check rig_caps offsets\n");
printf("If structure changes will break shared library API\n");
2021-01-20 16:46:07 +00:00
RIG *rig;
rig_set_debug_level(RIG_DEBUG_ERR);
2021-01-20 16:46:07 +00:00
rig = rig_init(1);
2022-02-05 21:27:43 +00:00
if (rig == NULL) { return 1; }
printf("Offsets are OK (i.e. have not changed)\n");
return 0;
2021-01-20 16:46:07 +00:00
}