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.
 

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_playlist(), parse_location(), parse_playlist(), and test().