xine-lib: xine-lib-1.2.13/src/input/input_helper.c File Reference

xine-lib 1.2.13-20230125hg15249

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

Referenced by _input_strverscmp().

## ◆ ISDIGIT

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

Referenced by _input_strverscmp().

## ◆ LEN

#define LEN 3

Referenced by _input_strverscmp().

## ◆ S_F

#define S_F 0x8

Referenced by _input_strverscmp().

## ◆ S_I

#define S_I 0x4

Referenced by _input_strverscmp().

## ◆ S_N

#define S_N 0x0

Referenced by _input_strverscmp().

## ◆ S_Z

#define S_Z 0xC

Referenced by _input_strverscmp().

## 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

References _input_strverscmp(), and mrl_file_directory.

Referenced by _x_input_sort_mrls().

## ◆ _x_input_alloc_mrls()

xine_mrl_t ** _x_input_alloc_mrls | ( | size_t | n | ) |

References NULL.

Referenced by _get_exports(), _get_files(), _get_files(), _read_dir(), _x_input_get_default_server_mrls(), _x_input_realloc_mrls(), bluray_class_get_dir(), and vcd_class_get_dir().

## ◆ _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 )

References BUF_DEMUX_BLOCK, fifo_buffer_s::buffer_pool_size_alloc, buf_element_s::content, buf_element_s::free_buffer, buf_element_s::max_size, buf_element_s::mem, NULL, input_plugin_s::read, buf_element_s::size, and buf_element_s::type.

Referenced by _get_instance(), _get_instance(), _get_instance(), crypto_class_get_instance(), dvb_class_get_instance(), file_input_read_block(), http_class_get_instance(), mms_class_get_instance(), net_class_get_instance(), pnm_class_get_instance(), rtp_class_get_instance(), rtsp_class_get_instance(), stdin_class_get_instance(), and test_class_get_instance().

## ◆ _x_input_free_mrls()

void _x_input_free_mrls | ( | xine_mrl_t *** | p | ) |

References _x_freep(), and MRL_ZERO.

Referenced by _dispose_class(), _dispose_class(), _dispose_class_sftp(), _get_dir(), _get_dir(), _get_dir(), _get_dir_es(), _get_servers(), bluray_class_dispose(), bluray_class_get_dir(), vcd_class_dispose(), and vcd_class_get_dir().

## ◆ _x_input_get_default_server_mrls()

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

References _x_input_alloc_mrls(), _x_input_sort_mrls(), config_values_s::lookup_entry, xine_mrl_s::mrl, mrl_file, mrl_file_directory, mrl_net, NULL, xine_mrl_s::origin, cfg_entry_s::str_value, type, and xine_mrl_s::type.

Referenced by _get_dir(), _get_dir(), _get_dir_es(), and _get_servers().

## ◆ _x_input_get_show_hidden_files()

int _x_input_get_show_hidden_files | ( | config_values_t * | config | ) |

References config_values_s::lookup_entry, and cfg_entry_s::num_value.

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

## ◆ _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_files(), _get_servers(), and _read_dir().

## ◆ _x_input_register_default_servers()

void _x_input_register_default_servers | ( | config_values_t * | config | ) |

References _, NULL, and config_values_s::register_string.

Referenced by input_ftp_init_class(), and sftp_init_class().

## ◆ _x_input_register_show_hidden_files()

void _x_input_register_show_hidden_files | ( | config_values_t * | config | ) |

References _, NULL, and config_values_s::register_bool.

Referenced by file_input_init_plugin(), input_ftp_init_class(), nfs_init_class(), and sftp_init_class().

## ◆ _x_input_sort_mrls()

void _x_input_sort_mrls | ( | xine_mrl_t ** | mrls,
|  | ssize_t | cnt )

References _mrl_cmp(), and _x_assert.

Referenced by _get_dir(), _get_files(), _read_dir(), and _x_input_get_default_server_mrls().