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

token_t HAMLIB_API rig_token_lookup ( RIG rig,
const char *  name 

lookup a token id

rigThe rig handle
nameThe name of the configuration parameter

Simple lookup returning token id assicated with name.

the token id if found, otherwise RIG_CONF_END

Definition at line 535 of file conf.c.

References rig_confparam_lookup(), and confparams::token.

      const struct confparams *cfp;

      cfp = rig_confparam_lookup(rig, name);
      if (!cfp)
            return RIG_CONF_END;

      return cfp->token;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index