VLC  3.0.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
Access

Data Structures

struct  access_t

Macros

#define ACCESS_SET_CALLBACKS(read, block, control, seek)
#define STANDARD_READ_ACCESS_INIT
#define STANDARD_BLOCK_ACCESS_INIT

Enumerations

enum  access_query_e {
  ACCESS_CAN_SEEK, ACCESS_CAN_FASTSEEK, ACCESS_CAN_PAUSE, ACCESS_CAN_CONTROL_PACE,
  ACCESS_GET_SIZE = 6, ACCESS_GET_PTS_DELAY = 0x101, ACCESS_GET_TITLE_INFO, ACCESS_GET_TITLE,
  ACCESS_GET_SEEKPOINT, ACCESS_GET_META, ACCESS_GET_CONTENT_TYPE, ACCESS_GET_SIGNAL,
  ACCESS_SET_PAUSE_STATE = 0x200, ACCESS_SET_TITLE, ACCESS_SET_SEEKPOINT, ACCESS_SET_PRIVATE_ID_STATE = 0x1000,
  ACCESS_SET_PRIVATE_ID_CA, ACCESS_GET_PRIVATE_ID_STATE
}

Functions

static int access_vaControl (access_t *p_access, int i_query, va_list args)
static int access_Control (access_t *p_access, int i_query,...)
static uint64_t access_GetSize (access_t *p_access)
static void access_InitFields (access_t *p_a)
input_thread_taccess_GetParentInput (access_t *p_access)
 This function will return the parent input of this access.

Detailed Description

Macro Definition Documentation

#define ACCESS_SET_CALLBACKS (   read,
  block,
  control,
  seek 
)
Value:
do { \
p_access->pf_read = (read); \
p_access->pf_block = (block); \
p_access->pf_control = (control); \
p_access->pf_seek = (seek); \
} while(0)
#define STANDARD_BLOCK_ACCESS_INIT
Value:
do { \
access_InitFields( p_access ); \
ACCESS_SET_CALLBACKS( NULL, Block, Control, Seek ); \
p_sys = p_access->p_sys = (access_sys_t*)calloc( 1, sizeof( access_sys_t ) ); \
if( !p_sys ) return VLC_ENOMEM; \
} while(0);
#define STANDARD_READ_ACCESS_INIT
Value:
do { \
access_InitFields( p_access ); \
ACCESS_SET_CALLBACKS( Read, NULL, Control, Seek ); \
p_sys = p_access->p_sys = (access_sys_t*)calloc( 1, sizeof( access_sys_t ) ); \
if( !p_sys ) return VLC_ENOMEM;\
} while(0);

Enumeration Type Documentation

Enumerator:
ACCESS_CAN_SEEK 
ACCESS_CAN_FASTSEEK 
ACCESS_CAN_PAUSE 
ACCESS_CAN_CONTROL_PACE 
ACCESS_GET_SIZE 
ACCESS_GET_PTS_DELAY 
ACCESS_GET_TITLE_INFO 
ACCESS_GET_TITLE 
ACCESS_GET_SEEKPOINT 
ACCESS_GET_META 
ACCESS_GET_CONTENT_TYPE 
ACCESS_GET_SIGNAL 
ACCESS_SET_PAUSE_STATE 
ACCESS_SET_TITLE 
ACCESS_SET_SEEKPOINT 
ACCESS_SET_PRIVATE_ID_STATE 
ACCESS_SET_PRIVATE_ID_CA 
ACCESS_GET_PRIVATE_ID_STATE 

Function Documentation

static int access_Control ( access_t p_access,
int  i_query,
  ... 
)
inlinestatic
input_thread_t* access_GetParentInput ( access_t p_access)

This function will return the parent input of this access.

It is retained. It can return NULL.

References access_t::p_input, and vlc_object_hold.

static uint64_t access_GetSize ( access_t p_access)
inlinestatic
static void access_InitFields ( access_t p_a)
inlinestatic

References access_t::b_eof, access_t::i_pos, and access_t::info.

Referenced by access_New().

static int access_vaControl ( access_t p_access,
int  i_query,
va_list  args 
)
inlinestatic

< Unspecified error

References access_t::pf_control, and VLC_EGENERIC.

Referenced by access_Control(), and AStreamControl().