29 #define EXTERN_C extern "C"
31 #define EXTERN_C extern
34 #define CONCAT4(w__, x__, y__, z__) w__ ## x__ ## y__ ## z__
35 #define MAKE_VERSIONED_FN(prefix__, version__, name_args__) CONCAT4(prefix__, version__, _, name_args__)
39 #error ABI_VERSION undefined! Did you include config.h?
42 #ifdef DECLARE_INITRIG_BACKEND
43 #undef DECLARE_INITRIG_BACKEND
45 #define DECLARE_INITRIG_BACKEND(backend) EXTERN_C BACKEND_EXPORT(int) MAKE_VERSIONED_FN(initrigs, ABI_VERSION, backend(void *be_handle))
47 #ifdef DECLARE_PROBERIG_BACKEND
48 #undef DECLARE_PROBERIG_BACKEND
50 #define DECLARE_PROBERIG_BACKEND(backend) EXTERN_C BACKEND_EXPORT(rig_model_t) MAKE_VERSIONED_FN(probeallrigs, ABI_VERSION, backend(hamlib_port_t *port, rig_probe_func_t cfunc, rig_ptr_t data))
52 #ifdef DECLARE_INITROT_BACKEND
53 #undef DECLARE_INITROT_BACKEND
55 #define DECLARE_INITROT_BACKEND(backend) EXTERN_C BACKEND_EXPORT(int) MAKE_VERSIONED_FN(initrots, ABI_VERSION, backend(void *be_handle))
57 #ifdef DECLARE_PROBEROT_BACKEND
58 #undef DECLARE_PROBEROT_BACKEND
60 #define DECLARE_PROBEROT_BACKEND(backend) EXTERN_C BACKEND_EXPORT(rot_model_t) MAKE_VERSIONED_FN(probeallrots, ABI_VERSION, backend(hamlib_port_t *port, rig_probe_func_t cfunc, rig_ptr_t data))
Hamlib rotator data structures.
Hamlib rig data structures.