2021-01-20 16:46:07 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <hamlib/rig.h>
|
|
|
|
|
2022-01-01 05:49:29 +00:00
|
|
|
// 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");
|
2022-01-01 05:49:29 +00:00
|
|
|
printf("If structure changes will break shared library API\n");
|
2021-01-20 16:46:07 +00:00
|
|
|
RIG *rig;
|
2022-01-01 05:49:29 +00:00
|
|
|
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; }
|
|
|
|
|
2022-01-01 05:49:29 +00:00
|
|
|
printf("Offsets are OK (i.e. have not changed)\n");
|
|
|
|
return 0;
|
2021-01-20 16:46:07 +00:00
|
|
|
}
|