FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
url.c File Reference

URL utility functions. More...

#include "avformat.h"
#include "config.h"
#include "url.h"
#include "libavutil/avstring.h"

Go to the source code of this file.

Functions

int ff_url_join (char *str, int size, const char *proto, const char *authorization, const char *hostname, int port, const char *fmt,...)
 
void ff_make_absolute_url (char *buf, int size, const char *base, const char *rel)
 Convert a relative url into an absolute url, given a base url. More...
 
AVIODirEntryff_alloc_dir_entry (void)
 Allocate directory entry with default values. More...
 

Detailed Description

URL utility functions.

Definition in file url.c.

Function Documentation

int ff_url_join ( char *  str,
int  size,
const char *  proto,
const char *  authorization,
const char *  hostname,
int  port,
const char *  fmt,
  ... 
)
void ff_make_absolute_url ( char *  buf,
int  size,
const char *  base,
const char *  rel 
)

Convert a relative url into an absolute url, given a base url.

Parameters
bufthe buffer where output absolute url is written
sizethe size of buf
basethe base url, may be equal to buf.
relthe new url, which is interpreted relative to base

Definition at line 80 of file url.c.

Referenced by add_file(), new_init_section(), new_playlist(), parse_location(), parse_playlist(), and test().

AVIODirEntry* ff_alloc_dir_entry ( void  )

Allocate directory entry with default values.

Returns
entry or NULL on error

Definition at line 149 of file url.c.

Referenced by ftp_read_dir(), libsmbc_read_dir(), and libssh_read_dir().