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

struct confparams* HAMLIB_API rig_ext_lookup_tok ( RIG rig,
token_t  token 
) [read]

lookup ext token, return pointer to confparams struct.

Parameters:
rig 
token lookup extlevels table first, then fall back to extparms.
Returns NULL if nothing found

Definition at line 145 of file ext.c.

References caps, rig_caps::extlevels, rig_caps::extparms, and confparams::token.

{
      const struct confparams *cfp;

      if (!rig || !rig->caps)
            return NULL;

      for (cfp = rig->caps->extlevels; cfp && cfp->token; cfp++)
            if (cfp->token == token)
                  return cfp;
      for (cfp = rig->caps->extparms; cfp && cfp->token; cfp++)
            if (cfp->token == token)
                  return cfp;
      return NULL;
}


Generated by  Doxygen 1.6.0   Back to index