FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
gopher.c File Reference
#include "libavutil/avstring.h"
#include "avformat.h"
#include "internal.h"
#include "network.h"
#include "url.h"

Go to the source code of this file.

Data Structures

struct  GopherContext
 

Functions

static int gopher_write (URLContext *h, const uint8_t *buf, int size)
 
static int gopher_connect (URLContext *h, const char *path)
 
static int gopher_close (URLContext *h)
 
static int gopher_open (URLContext *h, const char *uri, int flags)
 
static int gopher_read (URLContext *h, uint8_t *buf, int size)
 

Variables

const URLProtocol ff_gopher_protocol
 

Function Documentation

static int gopher_write ( URLContext h,
const uint8_t buf,
int  size 
)
static

Definition at line 35 of file gopher.c.

Referenced by gopher_connect().

static int gopher_connect ( URLContext h,
const char *  path 
)
static

Definition at line 41 of file gopher.c.

Referenced by gopher_open().

static int gopher_close ( URLContext h)
static

Definition at line 68 of file gopher.c.

Referenced by gopher_open().

static int gopher_open ( URLContext h,
const char *  uri,
int  flags 
)
static

Definition at line 78 of file gopher.c.

static int gopher_read ( URLContext h,
uint8_t buf,
int  size 
)
static

Definition at line 109 of file gopher.c.

Variable Documentation

const URLProtocol ff_gopher_protocol
Initial value:
= {
.name = "gopher",
.url_open = gopher_open,
.url_read = gopher_read,
.url_write = gopher_write,
.url_close = gopher_close,
.priv_data_size = sizeof(GopherContext),
}
static int gopher_open(URLContext *h, const char *uri, int flags)
Definition: gopher.c:78
#define URL_PROTOCOL_FLAG_NETWORK
Definition: url.h:34
static int gopher_read(URLContext *h, uint8_t *buf, int size)
Definition: gopher.c:109
static int gopher_close(URLContext *h)
Definition: gopher.c:68
static int flags
Definition: cpu.c:47
static int gopher_write(URLContext *h, const uint8_t *buf, int size)
Definition: gopher.c:35

Definition at line 117 of file gopher.c.