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

Classes | Defines | Functions | Variables

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 <ltdl.h>
#include <hamlib/rotator.h>
Include dependency graph for rot_reg.c:

Go to the source code of this file.

Classes

struct  rot_list

Defines

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

Functions

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)

Variables

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_listrot_hash_table [ROTLSTHASHSZ] = { NULL, }

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.


Generated by  Doxygen 1.6.0   Back to index