xine-lib 1.2.11
Macros | Functions
input_helper.c File Reference
#include <stdlib.h>
#include <xine/xine_internal.h>
#include "input_helper.h"

Macros

#define S_N   0x0
 
#define S_I   0x4
 
#define S_F   0x8
 
#define S_Z   0xC
 
#define CMP   2
 
#define LEN   3
 
#define ISDIGIT(c)   ((unsigned) (c) - '0' <= 9)
 

Functions

void _x_input_free_mrls (xine_mrl_t ***p)
 
xine_mrl_t ** _x_input_alloc_mrls (size_t n)
 
xine_mrl_t ** _x_input_realloc_mrls (xine_mrl_t ***p, size_t n)
 
static int _input_strverscmp (const char *s1, const char *s2)
 
static int _mrl_cmp (const void *p1, const void *p2)
 
void _x_input_sort_mrls (xine_mrl_t **mrls, ssize_t cnt)
 
void _x_input_register_show_hidden_files (config_values_t *config)
 
int _x_input_get_show_hidden_files (config_values_t *config)
 
void _x_input_register_default_servers (config_values_t *config)
 
xine_mrl_t ** _x_input_get_default_server_mrls (config_values_t *config, const char *type, int *nFiles)
 
buf_element_t_x_input_default_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, off_t todo)
 

Macro Definition Documentation

◆ CMP

#define CMP   2

◆ ISDIGIT

#define ISDIGIT (   c)    ((unsigned) (c) - '0' <= 9)

◆ LEN

#define LEN   3

◆ S_F

#define S_F   0x8

◆ S_I

#define S_I   0x4

◆ S_N

#define S_N   0x0

◆ S_Z

#define S_Z   0xC

Function Documentation

◆ _input_strverscmp()

static int _input_strverscmp ( const char *  s1,
const char *  s2 
)
static

References CMP, ISDIGIT, LEN, S_F, S_I, S_N, and S_Z.

Referenced by _mrl_cmp().

◆ _mrl_cmp()

static int _mrl_cmp ( const void *  p1,
const void *  p2 
)
static

◆ _x_input_alloc_mrls()

xine_mrl_t ** _x_input_alloc_mrls ( size_t  n)

◆ _x_input_default_read_block()

buf_element_t * _x_input_default_read_block ( input_plugin_t this_gen,
fifo_buffer_t fifo,
off_t  todo 
)

◆ _x_input_free_mrls()

void _x_input_free_mrls ( xine_mrl_t ***  p)

◆ _x_input_get_default_server_mrls()

xine_mrl_t ** _x_input_get_default_server_mrls ( config_values_t config,
const char *  type,
int *  nFiles 
)

◆ _x_input_get_show_hidden_files()

int _x_input_get_show_hidden_files ( config_values_t config)

◆ _x_input_realloc_mrls()

xine_mrl_t ** _x_input_realloc_mrls ( xine_mrl_t ***  p,
size_t  n 
)

References _x_input_alloc_mrls(), and NULL.

Referenced by _get_files(), _get_servers(), and _read_dir().

◆ _x_input_register_default_servers()

void _x_input_register_default_servers ( config_values_t config)

◆ _x_input_register_show_hidden_files()

void _x_input_register_show_hidden_files ( config_values_t config)

◆ _x_input_sort_mrls()

void _x_input_sort_mrls ( xine_mrl_t **  mrls,
ssize_t  cnt 
)