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

Function remove_opened_rot

src/rotator.c:123–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122
123static int remove_opened_rot(const ROT *rot)
124{
125 struct opened_rot_l *p, *q;
126 q = NULL;
127
128 for (p = opened_rot_list; p; p = p->next)
129 {
130 if (p->rot == rot)
131 {
132 if (q == NULL)
133 {
134 opened_rot_list = opened_rot_list->next;
135 }
136 else
137 {
138 q->next = p->next;
139 }
140
141 free(p);
142 return RIG_OK;
143 }
144
145 q = p;
146 }
147
148 return -RIG_EINVAL; /* Not found in list ! */
149}
150#endif /* !DOC_HIDDEN */
151
152/** @} */ /* rotator definitions */

Callers 1

rot_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected