| 223 | } |
| 224 | |
| 225 | int async_pipe_wait_for_data(hamlib_async_pipe_t *pipe, int timeout) |
| 226 | { |
| 227 | unsigned char data; |
| 228 | int result; |
| 229 | |
| 230 | // Use a zero-length read to wait for data in pipe |
| 231 | result = async_pipe_read(pipe, &data, 0, timeout); |
| 232 | |
| 233 | if (result > 0) |
| 234 | { |
| 235 | return RIG_OK; |
| 236 | } |
| 237 | |
| 238 | return result; |
| 239 | } |
| 240 | |
| 241 | ssize_t async_pipe_write(hamlib_async_pipe_t *pipe, const unsigned char *buf, |
| 242 | size_t count, int timeout) |
no test coverage detected