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

Function remove_opened_rig

src/rig.c:344–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342
343
344static int remove_opened_rig(const RIG *rig)
345{
346 struct opened_rig_l *p, *q;
347 q = NULL;
348
349 for (p = opened_rig_list; p; p = p->next)
350 {
351 if (p->rig == rig)
352 {
353 if (q == NULL)
354 {
355 opened_rig_list = opened_rig_list->next;
356 }
357 else
358 {
359 q->next = p->next;
360 }
361
362 free(p);
363 return (RIG_OK);
364 }
365
366 q = p;
367 }
368
369 return (-RIG_EINVAL); /* Not found in list ! */
370}
371//! @endcond
372
373

Callers 2

rig_openFunction · 0.85
rig_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected