xine-lib 1.2.11
Data Structures | Functions
http_helper.h File Reference
#include <xine/attributes.h>
#include <xine/xine_internal.h>

Go to the source code of this file.

Data Structures

struct  xine_url_t
 

Functions

const char * _x_url_user_agent (const char *url)
 
void _x_url_init (xine_url_t *url)
 
int _x_url_parse2 (const char *mrl, xine_url_t *url)
 
void _x_url_cleanup (xine_url_t *)
 
size_t _x_merge_mrl (char *dest, size_t dsize, const char *base_mrl, const char *new_mrl)
 merge a new, possibly relative mrl with a given base. result will always be 0 terminated. More...
 
static char * _x_canonicalise_url (const char *base, const char *url)
 

Function Documentation

◆ _x_canonicalise_url()

static char * _x_canonicalise_url ( const char *  base,
const char *  url 
)
inlinestatic

References _x_asprintf(), _x_assert, and NULL.

◆ _x_merge_mrl()

size_t _x_merge_mrl ( char *  dest,
size_t  dsize,
const char *  base_mrl,
const char *  new_mrl 
)

merge a new, possibly relative mrl with a given base. result will always be 0 terminated.

Parameters
destthe buffer to write the result to. may be NULL.
dsizethe size of *dest in bytes.
base_mrlthe base to fill missing parts with. may be the same as dest, or NULL.
new_mrlthe new mrl. may be NULL.
Returns
the string length of result. will be >= dsize when truncated.

References tab_type.

Referenced by hls_input_open(), hls_input_open_bump(), hls_input_open_item(), and http_plugin_handshake().

◆ _x_url_cleanup()

void _x_url_cleanup ( xine_url_t url)

◆ _x_url_init()

void _x_url_init ( xine_url_t url)

◆ _x_url_parse2()

int _x_url_parse2 ( const char *  mrl,
xine_url_t url 
)

◆ _x_url_user_agent()

const char * _x_url_user_agent ( const char *  url)

References NULL.

Referenced by http_can_handle(), and http_plugin_open().