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

rig The rig handle
name The 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 396 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;

Generated by  Doxygen 1.6.0   Back to index