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

Function add_opened_rot

src/rotator.c:106–120  ·  view source on GitHub ↗

* track which rot is opened (with rot_open) * needed at least for transceive mode */

Source from the content-addressed store, hash-verified

104 * needed at least for transceive mode
105 */
106static int add_opened_rot(ROT *rot)
107{
108 struct opened_rot_l *p;
109 p = (struct opened_rot_l *)calloc(1, sizeof(struct opened_rot_l));
110
111 if (!p)
112 {
113 return -RIG_ENOMEM;
114 }
115
116 p->rot = rot;
117 p->next = opened_rot_list;
118 opened_rot_list = p;
119 return RIG_OK;
120}
121
122
123static int remove_opened_rot(const ROT *rot)

Callers 1

rot_openFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected