Logo Search packages:      
Sourcecode: hamlib version File versions

int HAMLIB_API rig_get_mem_all_cb ( RIG rig,
chan_cb_t  chan_cb,
confval_cb_t  parm_cb,
rig_ptr_t  arg 

get all channel and non-channel data by call-back

rig The rig handle
chan_cb The callback for channel data
parm_cb The callback for non-channel(aka parm) data
arg Cookie passed to chan_cb and parm_cb
Retrieves the data associated with all the memory channels, and rigs memory parameters, by callback.

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:
rig_get_mem_all_cb(), rig_set_mem_all()
get all parm's
finish coding and testing of mem_all functions

Definition at line 869 of file mem.c.

References caps, rig_caps::get_mem_all_cb, RIG_EINVAL, RIG_ENIMPL, rig_get_chan_all_cb(), and RIG_OK.

      struct rig_caps *rc;
      int retval;

      if (CHECK_RIG_ARG(rig) || !chan_cb)
            return -RIG_EINVAL;

      rc = rig->caps;

      if (rc->get_mem_all_cb)
            return rc->get_mem_all_cb(rig, chan_cb, parm_cb, arg);

      /* if not available, emulate it */
      retval = rig_get_chan_all_cb (rig, chan_cb, arg);
      if (retval != RIG_OK)
            return retval;

#if 0
      retval = rig_get_parm_cb (rig, parm_cb, arg);
      if (retval != RIG_OK)
            return retval;
      return -RIG_ENIMPL;

      return retval;

Generated by  Doxygen 1.6.0   Back to index