MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / create_sync_data_pipe

Function create_sync_data_pipe

src/iofunc.c:82–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static 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

Callers 1

port_openFunction · 0.85

Calls 3

async_pipe_createFunction · 0.85
close_sync_data_pipeFunction · 0.85
rig_debugFunction · 0.85

Tested by

no test coverage detected