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

struct confparams* HAMLIB_API rot_confparam_lookup ( ROT rot,
const char *  name 
) [read]

lookup conf token by its name, return pointer to confparams struct.

Parameters:
rot
name
Returns:
confparams or NULL

lookup backend config table first, then fall back to frontend. TODO: should use Lex to speed it up, strcmp hurts!

Definition at line 329 of file rot_conf.c.

References rot::caps, rot_caps::cfgparams, and confparams::name.

Referenced by rot_token_lookup().

{
      const struct confparams *cfp;

      if (!rot || !rot->caps)
            return NULL;
      for (cfp = rot->caps->cfgparams; cfp && cfp->name; cfp++)
            if (!strcmp(cfp->name, name))
                  return cfp;
      for (cfp = rotfrontend_cfg_params; cfp->name; cfp++)
            if (!strcmp(cfp->name, name))
                  return cfp;
      return NULL;
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index