Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

rot_reg.c File Reference

Detailed Description

Dynamic registration of rotator backends.

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

Definition in file rot_reg.c.

#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <ltdl.h>
#include <hamlib/rotator.h>

Go to the source code of this file.


struct  rot_list


#define HASH_FUNC(a)   ((a)%ROTLSTHASHSZ)
#define PATH_MAX   1024
#define PREFIX   "hamlib-"
#define ROT_BACKEND_MAX   32
#define ROTLSTHASHSZ   16


int HAMLIB_API rot_check_backend (rot_model_t rot_model)
struct rot_caps *HAMLIB_API rot_get_caps (rot_model_t rot_model)
int HAMLIB_API rot_list_foreach (int(*cfunc)(const struct rot_caps *, rig_ptr_t), rig_ptr_t data)
int rot_load_all_backends ()
int HAMLIB_API rot_load_backend (const char *be_name)
static int rot_lookup_backend (rot_model_t rot_model)
rot_model_t HAMLIB_API rot_probe_all (hamlib_port_t *p)
int HAMLIB_API rot_register (const struct rot_caps *caps)
int HAMLIB_API rot_unregister (rot_model_t rot_model)


struct {
   const char *   be_name
   int   be_num
   rot_model_t(*   be_probe )(hamlib_port_t *)
rot_backend_list [ROT_BACKEND_MAX]
static struct rot_list * rot_hash_table [ROTLSTHASHSZ] = { NULL, }

Generated by  Doxygen 1.6.0   Back to index