| 831 | } |
| 832 | |
| 833 | int network_publish_rig_poll_data(RIG *rig) |
| 834 | { |
| 835 | const struct rig_state *rs = STATE(rig); |
| 836 | int result; |
| 837 | multicast_publisher_data_packet packet = |
| 838 | { |
| 839 | .type = MULTICAST_PUBLISHER_DATA_PACKET_TYPE_POLL, |
| 840 | .padding = 0, |
| 841 | .data_length = 0, |
| 842 | }; |
| 843 | |
| 844 | if (rs->multicast_publisher_priv_data == NULL) |
| 845 | { |
| 846 | // Silently ignore call if multicast publisher is not enabled |
| 847 | return RIG_OK; |
| 848 | } |
| 849 | |
| 850 | multicast_publisher_write_lock(rig); |
| 851 | result = multicast_publisher_write_packet_header(rig, &packet); |
| 852 | multicast_publisher_write_unlock(rig); |
| 853 | return result; |
| 854 | } |
| 855 | |
| 856 | int network_publish_rig_transceive_data(RIG *rig) |
| 857 | { |
no test coverage detected