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

int HAMLIB_API rig_get_conf ( RIG rig,
token_t  token,
char *  val 

get the value of a configuration parameter

rig The rig handle
token The parameter
val The location where to store the value of config token
Retrieves the value of a configuration paramter associated with token. The location pointed to by val must be large enough to hold the value of the config.

RIG_OK if the operation has been sucessful, otherwise a negative value if an error occured (in which case, cause is set appropriately).
See also:

Definition at line 591 of file conf.c.

References caps, rig_caps::get_conf, IS_TOKEN_FRONTEND, RIG_EINVAL, and RIG_ENAVAIL.

      if (!rig || !rig->caps || !val)
            return -RIG_EINVAL;

      if (IS_TOKEN_FRONTEND(token))
            return frontend_get_conf(rig, token, val);

      if (rig->caps->get_conf == NULL)
            return -RIG_ENAVAIL;

      return rig->caps->get_conf(rig, token, val);

Generated by  Doxygen 1.6.0   Back to index