| 854 | } |
| 855 | |
| 856 | int network_publish_rig_transceive_data(RIG *rig) |
| 857 | { |
| 858 | const struct rig_state *rs = STATE(rig); |
| 859 | int result; |
| 860 | multicast_publisher_data_packet packet = |
| 861 | { |
| 862 | .type = MULTICAST_PUBLISHER_DATA_PACKET_TYPE_TRANSCEIVE, |
| 863 | .padding = 0, |
| 864 | .data_length = 0, |
| 865 | }; |
| 866 | |
| 867 | if (rs->multicast_publisher_priv_data == NULL) |
| 868 | { |
| 869 | // Silently ignore call if multicast publisher is not enabled |
| 870 | return RIG_OK; |
| 871 | } |
| 872 | |
| 873 | multicast_publisher_write_lock(rig); |
| 874 | result = multicast_publisher_write_packet_header(rig, &packet); |
| 875 | multicast_publisher_write_unlock(rig); |
| 876 | return result; |
| 877 | } |
| 878 | |
| 879 | int network_publish_rig_spectrum_data(RIG *rig, struct rig_spectrum_line *line) |
| 880 | { |
no test coverage detected