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

int HAMLIB_API rot_get_conf ( ROT rot,
token_t  token,
char *  val 
)

get the value of a configuration parameter

Parameters:
rot The rot 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.

Returns:
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:
rot_set_conf()

Definition at line 511 of file rotator.c.

References rot::caps, frontrot_get_conf(), rot_caps::get_conf, IS_TOKEN_FRONTEND, RIG_EINVAL, and RIG_ENAVAIL.

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

      if (IS_TOKEN_FRONTEND(token))
            return frontrot_get_conf(rot, token, val);

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

      return rot->caps->get_conf(rot, token, val);
}


Generated by  Doxygen 1.6.0   Back to index