MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / libssh_open

Function libssh_open

libavformat/libssh.c:227–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227static av_cold int libssh_open(URLContext *h, const char *url, int flags)
228{
229 int ret;
230 LIBSSHContext *libssh = h->priv_data;
231 char path[MAX_URL_SIZE];
232
233 if ((ret = libssh_connect(h, url, path, sizeof(path))) < 0)
234 goto fail;
235
236 if ((ret = libssh_open_file(libssh, flags, path)) < 0)
237 goto fail;
238
239 libssh_stat_file(libssh);
240
241 return 0;
242
243 fail:
244 libssh_close(h);
245 return ret;
246}
247
248static int64_t libssh_seek(URLContext *h, int64_t pos, int whence)
249{

Callers

nothing calls this directly

Calls 4

libssh_connectFunction · 0.85
libssh_open_fileFunction · 0.85
libssh_stat_fileFunction · 0.85
libssh_closeFunction · 0.85

Tested by

no test coverage detected