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 #define PREFIX_INITRIG initrigs
43 #define PREFIX_PROBERIG probeallrigs
45 #define DECLARE_INITRIG_BACKEND(backend) EXTERN_C BACKEND_EXPORT(int) MAKE_VERSIONED_FN(PREFIX_INITRIG, ABI_VERSION, backend(void *be_handle))
47 #define DECLARE_PROBERIG_BACKEND(backend) EXTERN_C BACKEND_EXPORT(rig_model_t) MAKE_VERSIONED_FN(PREFIX_PROBERIG, ABI_VERSION, backend(hamlib_port_t *port, rig_probe_func_t cfunc, rig_ptr_t data))
49 #define PREFIX_INITROTS initrots
50 #define PREFIX_PROBEROTS probeallrots
52 #define DECLARE_INITROT_BACKEND(backend) EXTERN_C BACKEND_EXPORT(int) MAKE_VERSIONED_FN(PREFIX_INITROTS, ABI_VERSION, backend(void *be_handle))
54 #define DECLARE_PROBEROT_BACKEND(backend) EXTERN_C BACKEND_EXPORT(rot_model_t) MAKE_VERSIONED_FN(PREFIX_PROBEROTS, ABI_VERSION, backend(hamlib_port_t *port, rig_probe_func_t cfunc, rig_ptr_t data))
Hamlib rotator data structures.
Hamlib rig data structures.