access.c File Reference

Include dependency graph for access.c:


Defines

#define CACHING_TEXT   N_("Caching value in ms")
#define CACHING_LONGTEXT
#define ADAPTER_TEXT   N_("Adapter card to tune")
#define ADAPTER_LONGTEXT   N_("Adapter cards have a device file in directory named /dev/dvb/adapter[n] with n>=0.")
#define DEVICE_TEXT   N_("Device number to use on adapter")
#define DEVICE_LONGTEXT   ""
#define FREQ_TEXT   N_("Transponder/multiplex frequency")
#define FREQ_LONGTEXT   N_("In kHz for DVB-S or Hz for DVB-C/T")
#define INVERSION_TEXT   N_("Inversion mode")
#define INVERSION_LONGTEXT   N_("Inversion mode [0=off, 1=on, 2=auto]")
#define PROBE_TEXT   N_("Probe DVB card for capabilities")
#define PROBE_LONGTEXT   N_("Some DVB cards do not like to be probed for their capabilities, you can disable this feature if you experience some trouble.")
#define BUDGET_TEXT   N_("Budget mode")
#define BUDGET_LONGTEXT   N_("This allows you to stream an entire transponder with a \"budget\" card.")
#define SATNO_TEXT   N_("Satellite number in the Diseqc system")
#define SATNO_LONGTEXT   N_("[0=no diseqc, 1-4=satellite number].")
#define VOLTAGE_TEXT   N_("LNB voltage")
#define VOLTAGE_LONGTEXT   N_("In Volts [0, 13=vertical, 18=horizontal].")
#define HIGH_VOLTAGE_TEXT   N_("High LNB voltage")
#define HIGH_VOLTAGE_LONGTEXT
#define TONE_TEXT   N_("22 kHz tone")
#define TONE_LONGTEXT   N_("[0=off, 1=on, -1=auto].")
#define FEC_TEXT   N_("Transponder FEC")
#define FEC_LONGTEXT   N_("FEC=Forward Error Correction mode [9=auto].")
#define SRATE_TEXT   N_("Transponder symbol rate in kHz")
#define SRATE_LONGTEXT   ""
#define LNB_LOF1_TEXT   N_("Antenna lnb_lof1 (kHz)")
#define LNB_LOF1_LONGTEXT   ""
#define LNB_LOF2_TEXT   N_("Antenna lnb_lof2 (kHz)")
#define LNB_LOF2_LONGTEXT   ""
#define LNB_SLOF_TEXT   N_("Antenna lnb_slof (kHz)")
#define LNB_SLOF_LONGTEXT   ""
#define MODULATION_TEXT   N_("Modulation type")
#define MODULATION_LONGTEXT   N_("Modulation type for front-end device.")
#define CODE_RATE_HP_TEXT   N_("Terrestrial high priority stream code rate (FEC)")
#define CODE_RATE_HP_LONGTEXT   ""
#define CODE_RATE_LP_TEXT   N_("Terrestrial low priority stream code rate (FEC)")
#define CODE_RATE_LP_LONGTEXT   ""
#define BANDWIDTH_TEXT   N_("Terrestrial bandwidth")
#define BANDWIDTH_LONGTEXT   N_("Terrestrial bandwidth [0=auto,6,7,8 in MHz]")
#define GUARD_TEXT   N_("Terrestrial guard interval")
#define GUARD_LONGTEXT   ""
#define TRANSMISSION_TEXT   N_("Terrestrial transmission mode")
#define TRANSMISSION_LONGTEXT   ""
#define HIERARCHY_TEXT   N_("Terrestrial hierarchy mode")
#define HIERARCHY_LONGTEXT   ""
#define HOST_TEXT   N_( "HTTP Host address" )
#define HOST_LONGTEXT
#define USER_TEXT   N_( "HTTP user name" )
#define USER_LONGTEXT
#define PASSWORD_TEXT   N_( "HTTP password" )
#define PASSWORD_LONGTEXT
#define ACL_TEXT   N_( "HTTP ACL" )
#define ACL_LONGTEXT
#define CERT_TEXT   N_( "Certificate file" )
#define CERT_LONGTEXT
#define KEY_TEXT   N_( "Private key file" )
#define KEY_LONGTEXT   N_( "HTTP interface x509 PEM private key file" )
#define CA_TEXT   N_( "Root CA file" )
#define CA_LONGTEXT
#define CRL_TEXT   N_( "CRL file" )
#define CRL_LONGTEXT   N_( "HTTP interface Certificates Revocation List file" )
#define DVB_READ_ONCE   20
#define DVB_READ_ONCE_START   2
#define DVB_READ_ONCE_SCAN   1
#define TS_PACKET_SIZE   188
#define DVB_SCAN_MAX_SIGNAL_TIME   (300*1000)
#define DVB_SCAN_MAX_LOCK_TIME   (5000*1000)
#define DVB_SCAN_MAX_PROBE_TIME   (30000*1000)
#define GET_OPTION_INT(option)
#define GET_OPTION_BOOL(option)

Functions

static int Open (vlc_object_t *p_this)
 Probes and initializes.
static void Close (vlc_object_t *p_this)
 Releases resources.
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static block_tBlock (access_t *)
static int Control (access_t *, int, va_list)
static block_tBlockScan (access_t *)
static void FilterUnset (access_t *, int i_max)
static void FilterUnsetPID (access_t *, int i_pid)
static void FilterSet (access_t *, int i_pid, int i_type)
static void VarInit (access_t *)
static int ParseMRL (access_t *)

Define Documentation

#define ACL_LONGTEXT

Value:

N_( \
    "Access control list (equivalent to .hosts) file path, " \
    "which will limit the range of IPs entitled to log into the internal " \
    "HTTP server." )

#define ACL_TEXT   N_( "HTTP ACL" )

#define ADAPTER_LONGTEXT   N_("Adapter cards have a device file in directory named /dev/dvb/adapter[n] with n>=0.")

#define ADAPTER_TEXT   N_("Adapter card to tune")

#define BANDWIDTH_LONGTEXT   N_("Terrestrial bandwidth [0=auto,6,7,8 in MHz]")

#define BANDWIDTH_TEXT   N_("Terrestrial bandwidth")

#define BUDGET_LONGTEXT   N_("This allows you to stream an entire transponder with a \"budget\" card.")

#define BUDGET_TEXT   N_("Budget mode")

#define CA_LONGTEXT

Value:

N_( "HTTP interface x509 PEM trusted root CA " \
                        "certificates file" )

#define CA_TEXT   N_( "Root CA file" )

#define CACHING_LONGTEXT

Value:

N_( \
    "Caching value for DVB streams. This " \
    "value should be set in milliseconds." )

#define CACHING_TEXT   N_("Caching value in ms")

#define CERT_LONGTEXT

Value:

N_( "HTTP interface x509 PEM certificate file " \
                          "(enables SSL)" )

#define CERT_TEXT   N_( "Certificate file" )

#define CODE_RATE_HP_LONGTEXT   ""

#define CODE_RATE_HP_TEXT   N_("Terrestrial high priority stream code rate (FEC)")

#define CODE_RATE_LP_LONGTEXT   ""

#define CODE_RATE_LP_TEXT   N_("Terrestrial low priority stream code rate (FEC)")

#define CRL_LONGTEXT   N_( "HTTP interface Certificates Revocation List file" )

#define CRL_TEXT   N_( "CRL file" )

#define DEVICE_LONGTEXT   ""

#define DEVICE_TEXT   N_("Device number to use on adapter")

#define DVB_READ_ONCE   20

Referenced by Block(), FilterSet(), and Open().

#define DVB_READ_ONCE_SCAN   1

Referenced by Open().

#define DVB_READ_ONCE_START   2

Referenced by Open().

#define DVB_SCAN_MAX_LOCK_TIME   (5000*1000)

Referenced by BlockScan().

#define DVB_SCAN_MAX_PROBE_TIME   (30000*1000)

Referenced by BlockScan().

#define DVB_SCAN_MAX_SIGNAL_TIME   (300*1000)

Referenced by BlockScan().

#define FEC_LONGTEXT   N_("FEC=Forward Error Correction mode [9=auto].")

#define FEC_TEXT   N_("Transponder FEC")

#define FREQ_LONGTEXT   N_("In kHz for DVB-S or Hz for DVB-C/T")

#define FREQ_TEXT   N_("Transponder/multiplex frequency")

#define GET_OPTION_BOOL ( option   ) 

Value:

if ( !strncmp( psz_parser, option "=", strlen(option "=") ) )           \
    {                                                                       \
        val.b_bool = strtol( psz_parser + strlen(option "="), &psz_parser,  \
                             0 );                                           \
        var_Set( p_access, "dvb-" option, val );                            \
    }

Referenced by ParseMRL().

#define GET_OPTION_INT ( option   ) 

Value:

if ( !strncmp( psz_parser, option "=", strlen(option "=") ) )           \
    {                                                                       \
        val.i_int = strtol( psz_parser + strlen(option "="), &psz_parser,   \
                            0 );                                            \
        var_Set( p_access, "dvb-" option, val );                            \
    }

Referenced by ParseMRL().

#define GUARD_LONGTEXT   ""

#define GUARD_TEXT   N_("Terrestrial guard interval")

#define HIERARCHY_LONGTEXT   ""

#define HIERARCHY_TEXT   N_("Terrestrial hierarchy mode")

#define HIGH_VOLTAGE_LONGTEXT

Value:

N_("Enable high voltage if your cables are " \
    "particularly long. This is not supported by all frontends.")

#define HIGH_VOLTAGE_TEXT   N_("High LNB voltage")

#define HOST_LONGTEXT

Value:

N_( \
    "To enable the internal HTTP server, set its address and port here." )

#define HOST_TEXT   N_( "HTTP Host address" )

#define INVERSION_LONGTEXT   N_("Inversion mode [0=off, 1=on, 2=auto]")

#define INVERSION_TEXT   N_("Inversion mode")

#define KEY_LONGTEXT   N_( "HTTP interface x509 PEM private key file" )

#define KEY_TEXT   N_( "Private key file" )

#define LNB_LOF1_LONGTEXT   ""

#define LNB_LOF1_TEXT   N_("Antenna lnb_lof1 (kHz)")

#define LNB_LOF2_LONGTEXT   ""

#define LNB_LOF2_TEXT   N_("Antenna lnb_lof2 (kHz)")

#define LNB_SLOF_LONGTEXT   ""

#define LNB_SLOF_TEXT   N_("Antenna lnb_slof (kHz)")

#define MODULATION_LONGTEXT   N_("Modulation type for front-end device.")

#define MODULATION_TEXT   N_("Modulation type")

#define PASSWORD_LONGTEXT

Value:

N_( \
    "Password the administrator will use to log into " \
    "the internal HTTP server." )

#define PASSWORD_TEXT   N_( "HTTP password" )

#define PROBE_LONGTEXT   N_("Some DVB cards do not like to be probed for their capabilities, you can disable this feature if you experience some trouble.")

#define PROBE_TEXT   N_("Probe DVB card for capabilities")

#define SATNO_LONGTEXT   N_("[0=no diseqc, 1-4=satellite number].")

#define SATNO_TEXT   N_("Satellite number in the Diseqc system")

#define SRATE_LONGTEXT   ""

#define SRATE_TEXT   N_("Transponder symbol rate in kHz")

#define TONE_LONGTEXT   N_("[0=off, 1=on, -1=auto].")

#define TONE_TEXT   N_("22 kHz tone")

#define TRANSMISSION_LONGTEXT   ""

#define TRANSMISSION_TEXT   N_("Terrestrial transmission mode")

#define TS_PACKET_SIZE   188

Referenced by Block(), and BlockScan().

#define USER_LONGTEXT

Value:

N_( \
    "User name the administrator will use to log into " \
    "the internal HTTP server." )

#define USER_TEXT   N_( "HTTP user name" )

#define VOLTAGE_LONGTEXT   N_("In Volts [0, 13=vertical, 18=horizontal].")

#define VOLTAGE_TEXT   N_("LNB voltage")


Function Documentation

static block_t * Block ( access_t p_access  )  [static]

static block_t * BlockScan ( access_t p_access  )  [static]

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

References access_sys_t::b_budget_mode, access_sys_t::b_scan_mode, CAMClose(), DVRClose(), FilterUnset(), FrontendClose(), MAX_DEMUX, access_t::p_sys, p_sys, access_sys_t::scan, and scan_Clean().

static int Control ( access_t p_access,
int  i_query,
va_list  args 
) [static]

static void FilterSet ( access_t p_access,
int  i_pid,
int  i_type 
) [static]

static void FilterUnset ( access_t p_access,
int  i_max 
) [static]

static void FilterUnsetPID ( access_t p_access,
int  i_pid 
) [static]

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

References access_InitFields(), access_sys_t::b_budget_mode, access_sys_t::b_scan_mode, Block(), BlockScan(), CAMOpen(), Close(), Control(), DVB_READ_ONCE, DVB_READ_ONCE_SCAN, DVB_READ_ONCE_START, DVROpen(), FilterSet(), FrontendClose(), FrontendGetScanParameter(), FrontendOpen(), FrontendSet(), access_sys_t::i_read_once, msg_Dbg, OTHER_TYPE, access_t::p_sys, p_sys, ParseMRL(), access_t::pf_block, access_t::pf_control, access_t::pf_read, access_t::pf_seek, access_t::psz_access, access_t::psz_demux, access_sys_t::scan, scan_Init(), strdup(), var_GetBool, var_GetInteger, VarInit(), VLC_EGENERIC, VLC_ENOMEM, VLC_OBJECT, and VLC_SUCCESS.

static int ParseMRL ( access_t p_access  )  [static]

static void VarInit ( access_t p_access  )  [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Generated on Tue May 25 08:05:34 2010 for VLC by  doxygen 1.5.6