#include <fcntl.h>
#include <libssh/sftp.h>
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/attributes.h"
#include "libavformat/avio.h"
#include "avformat.h"
#include "internal.h"
#include "url.h"
Go to the source code of this file.
|
static av_cold int | libssh_create_ssh_session (LIBSSHContext *libssh, const char *hostname, unsigned int port) |
|
static av_cold int | libssh_authentication (LIBSSHContext *libssh, const char *user, const char *password) |
|
static av_cold int | libssh_create_sftp_session (LIBSSHContext *libssh) |
|
static av_cold int | libssh_open_file (LIBSSHContext *libssh, int flags, const char *file) |
|
static av_cold void | libssh_stat_file (LIBSSHContext *libssh) |
|
static av_cold int | libssh_close (URLContext *h) |
|
static av_cold int | libssh_connect (URLContext *h, const char *url, char *path, size_t path_size) |
|
static av_cold int | libssh_open (URLContext *h, const char *url, int flags) |
|
static int64_t | libssh_seek (URLContext *h, int64_t pos, int whence) |
|
static int | libssh_read (URLContext *h, unsigned char *buf, int size) |
|
static int | libssh_write (URLContext *h, const unsigned char *buf, int size) |
|
static int | libssh_open_dir (URLContext *h) |
|
static int | libssh_read_dir (URLContext *h, AVIODirEntry **next) |
|
static int | libssh_close_dir (URLContext *h) |
|
static int | libssh_delete (URLContext *h) |
|
static int | libssh_move (URLContext *h_src, URLContext *h_dst) |
|
◆ LIBSSH_STATIC
◆ OFFSET
◆ libssh_create_ssh_session()
◆ libssh_authentication()
◆ libssh_create_sftp_session()
◆ libssh_open_file()
◆ libssh_stat_file()
◆ libssh_close()
◆ libssh_connect()
static av_cold int libssh_connect |
( |
URLContext * |
h, |
|
|
const char * |
url, |
|
|
char * |
path, |
|
|
size_t |
path_size |
|
) |
| |
|
static |
◆ libssh_open()
◆ libssh_seek()
static int64_t libssh_seek |
( |
URLContext * |
h, |
|
|
int64_t |
pos, |
|
|
int |
whence |
|
) |
| |
|
static |
◆ libssh_read()
◆ libssh_write()
◆ libssh_open_dir()
◆ libssh_read_dir()
◆ libssh_close_dir()
◆ libssh_delete()
◆ libssh_move()
◆ options
Initial value:= {
{
"timeout",
"set timeout of socket I/O operations",
OFFSET(rw_timeout),
AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX,
D|
E },
}
static av_always_inline av_const double trunc(double x)
Definition at line 478 of file libssh.c.
◆ libssh_context_class
Initial value:= {
.class_name = "libssh",
}
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name.
static const AVOption options[]
Definition at line 485 of file libssh.c.
◆ ff_libssh_protocol
Initial value:= {
.name = "sftp",
}
static av_cold int libssh_open(URLContext *h, const char *url, int flags)
#define URL_PROTOCOL_FLAG_NETWORK
static int libssh_write(URLContext *h, const unsigned char *buf, int size)
static int libssh_open_dir(URLContext *h)
static int libssh_read_dir(URLContext *h, AVIODirEntry **next)
static int libssh_move(URLContext *h_src, URLContext *h_dst)
static int libssh_delete(URLContext *h)
static av_cold int libssh_close(URLContext *h)
static const AVClass libssh_context_class
static int64_t libssh_seek(URLContext *h, int64_t pos, int whence)
static int libssh_read(URLContext *h, unsigned char *buf, int size)
static int libssh_close_dir(URLContext *h)
Definition at line 492 of file libssh.c.