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) \ 46 EXTERN_C BACKEND_EXPORT(int) \ 47 MAKE_VERSIONED_FN(PREFIX_INITRIG, ABI_VERSION, backend(void *be_handle)) 49 #define DECLARE_PROBERIG_BACKEND(backend) \ 50 EXTERN_C BACKEND_EXPORT(rig_model_t) \ 51 MAKE_VERSIONED_FN(PREFIX_PROBERIG, \ 53 backend(hamlib_port_t *port, \ 54 rig_probe_func_t cfunc, \ 57 #define PREFIX_INITROTS initrots 58 #define PREFIX_PROBEROTS probeallrots 60 #define DECLARE_INITROT_BACKEND(backend) \ 61 EXTERN_C BACKEND_EXPORT(int) \ 62 MAKE_VERSIONED_FN(PREFIX_INITROTS, ABI_VERSION, backend(void *be_handle)) 64 #define DECLARE_PROBEROT_BACKEND(backend) \ 65 EXTERN_C BACKEND_EXPORT(rot_model_t) \ 66 MAKE_VERSIONED_FN(PREFIX_PROBEROTS, \ 68 backend(hamlib_port_t *port, \ 69 rig_probe_func_t cfunc, \ Hamlib rotator data structures.
Hamlib rig data structures.