* track which rot is opened (with rot_open) * needed at least for transceive mode */
| 104 | * needed at least for transceive mode |
| 105 | */ |
| 106 | static 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 | |
| 123 | static int remove_opened_rot(const ROT *rot) |