Hamlib  3.0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Functions
rot_reg.c File Reference

Dynamic registration of rotator backends. More...

#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <hamlib/rotator.h>
#include "register.h"
Include dependency graph for rot_reg.c:

Data Structures

struct  rot_list
 

Macros

#define PATH_MAX   1024
 
#define ROT_BACKEND_MAX   32
 
#define DEFINE_INITROT_BACKEND(backend)
 
#define ROT_FUNCNAMA(backend)   MAKE_VERSIONED_FN(PREFIX_INITROTS, ABI_VERSION, backend)
 
#define ROT_FUNCNAMB(backend)   MAKE_VERSIONED_FN(PREFIX_PROBEROTS, ABI_VERSION, backend)
 
#define ROT_FUNCNAM(backend)   ROT_FUNCNAMA(backend),ROT_FUNCNAMB(backend)
 
#define ROTLSTHASHSZ   16
 
#define HASH_FUNC(a)   ((a)%ROTLSTHASHSZ)
 

Functions

int initrotsABI_VERSION_dummy (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_dummy (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_easycomm (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_easycomm (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_fodtrack (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_fodtrack (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_rotorez (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_rotorez (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_sartek (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_sartek (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_gs232a (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_gs232a (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_kit (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_kit (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_heathkit (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_heathkit (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_spid (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_spid (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_m2 (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_m2 (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_ars (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_ars (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_amsat (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_amsat (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_ts7400 (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_ts7400 (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_celestron (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_celestron (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_ether6 (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_ether6 (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrotsABI_VERSION_cnctrk (void *be_handle)
 
rig_model_t probeallrotsABI_VERSION_cnctrk (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int rot_register (const struct rot_caps *caps)
 
const struct rot_capsrot_get_caps (rot_model_t rot_model)
 
int rot_check_backend (rot_model_t rot_model)
 
int rot_unregister (rot_model_t rot_model)
 
int rot_list_foreach (int(*cfunc)(const struct rot_caps *, char *), char *data)
 
rot_model_t rot_probe_all (hamlib_port_t *p)
 
int rot_load_all_backends ()
 
int rot_load_backend (const char *be_name)
 

Detailed Description

Dynamic registration of rotator backends.

Similar to register.c doc todo: Let's explain what's going on here!

Macro Definition Documentation

#define DEFINE_INITROT_BACKEND (   backend)
Value:
int MAKE_VERSIONED_FN(PREFIX_INITROTS, ABI_VERSION, backend(void *be_handle)); \
rig_model_t MAKE_VERSIONED_FN(PREFIX_PROBEROTS, ABI_VERSION, backend(hamlib_port_t *port, rig_probe_func_t cfunc, rig_ptr_t data))
int rig_model_t
Convenience type definition for rig model.
Definition: riglist.h:540
Port definition.
Definition: rig.h:1338

Generated by doxygen 1.8.8

Hamlib documentation for version 3.0.1 -- Wed Jan 13 2016 15:05:23
Project page: http://www.hamlib.org