#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) |
|
static av_cold int libssh_create_ssh_session |
( |
LIBSSHContext * |
libssh, |
|
|
const char * |
hostname, |
|
|
unsigned int |
port |
|
) |
| |
|
static |
static av_cold int libssh_authentication |
( |
LIBSSHContext * |
libssh, |
|
|
const char * |
user, |
|
|
const char * |
password |
|
) |
| |
|
static |
static av_cold int libssh_connect |
( |
URLContext * |
h, |
|
|
const char * |
url, |
|
|
char * |
path, |
|
|
size_t |
path_size |
|
) |
| |
|
static |
static int64_t libssh_seek |
( |
URLContext * |
h, |
|
|
int64_t |
pos, |
|
|
int |
whence |
|
) |
| |
|
static |
static int libssh_read |
( |
URLContext * |
h, |
|
|
unsigned char * |
buf, |
|
|
int |
size |
|
) |
| |
|
static |
static int libssh_write |
( |
URLContext * |
h, |
|
|
const unsigned char * |
buf, |
|
|
int |
size |
|
) |
| |
|
static |
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.
Initial value:= {
.class_name = "libssh",
}
#define LIBAVUTIL_VERSION_INT
static const AVOption options[]
Definition at line 485 of file libssh.c.
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.