| 80 | } |
| 81 | |
| 82 | static int create_sync_data_pipe(hamlib_port_t *p) |
| 83 | { |
| 84 | int status; |
| 85 | |
| 86 | status = async_pipe_create(&p->sync_data_pipe, PIPE_BUFFER_SIZE_DEFAULT, |
| 87 | p->timeout); |
| 88 | |
| 89 | if (status < 0) |
| 90 | { |
| 91 | close_sync_data_pipe(p); |
| 92 | return (-RIG_EINTERNAL); |
| 93 | } |
| 94 | |
| 95 | status = async_pipe_create(&p->sync_data_error_pipe, PIPE_BUFFER_SIZE_DEFAULT, |
| 96 | p->timeout); |
| 97 | |
| 98 | if (status < 0) |
| 99 | { |
| 100 | close_sync_data_pipe(p); |
| 101 | return (-RIG_EINTERNAL); |
| 102 | } |
| 103 | |
| 104 | rig_debug(RIG_DEBUG_VERBOSE, |
| 105 | "%s: created data pipe for synchronous transactions\n", __func__); |
| 106 | |
| 107 | return (RIG_OK); |
| 108 | } |
| 109 | |
| 110 | #else |
| 111 |
no test coverage detected