MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / rig_load_backend

Function rig_load_backend

src/register.c:559–582  ·  view source on GitHub ↗

* rig_load_backend */ @cond Doxygen_Suppress

Source from the content-addressed store, hash-verified

557 */
558//! @cond Doxygen_Suppress
559int HAMLIB_API rig_load_backend(const char *be_name)
560{
561 int i;
562 backend_init_t be_init;
563
564 for (i = 0; i < RIG_BACKEND_MAX && rig_backend_list[i].be_name; i++)
565 {
566 if (!strcmp(be_name, rig_backend_list[i].be_name))
567 {
568 be_init = rig_backend_list[i].be_init_all ;
569
570 if (be_init)
571 {
572 return (*be_init)(NULL);
573 }
574 else
575 {
576 return -RIG_EINVAL;
577 }
578 }
579 }
580
581 return -RIG_EINVAL;
582}
583//! @endcond

Callers 2

rig_check_backendFunction · 0.85
rig_load_all_backendsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected