rc.c File Reference

Include dependency graph for rc.c:


Data Structures

struct  intf_sys_t
 Per-interface private state. More...

Defines

#define MAX_LINE_LENGTH   1024
#define STATUS_CHANGE   "status change: "
#define msg_rc(...)   __msg_rc( p_intf, __VA_ARGS__ )
#define POS_TEXT   N_("Show stream position")
#define POS_LONGTEXT
#define TTY_TEXT   N_("Fake TTY")
#define TTY_LONGTEXT   N_("Force the rc module to use stdin as if it was a TTY.")
#define UNIX_TEXT   N_("UNIX socket command input")
#define UNIX_LONGTEXT
#define HOST_TEXT   N_("TCP command input")
#define HOST_LONGTEXT
#define ADD(name, type, target)
#define SKIPSPACE(p)   { while( *p == ' ' || *p == '\t' ) p++; }
#define SKIPTRAILINGSPACE(p, d)   { char *e=d; while( e > p && (*(e-1)==' ' || *(e-1)=='\t') ){e--;*e=0;} }

Functions

static int Activate (vlc_object_t *)
static void Deactivate (vlc_object_t *)
static void Run (intf_thread_t *)
static void Help (intf_thread_t *, bool)
static void RegisterCallbacks (intf_thread_t *)
static bool ReadCommand (intf_thread_t *, char *, int *)
static input_item_tparse_MRL (intf_thread_t *, char *)
static int Input (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int Playlist (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int Quit (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int Intf (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int Volume (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int VolumeMove (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int VideoConfig (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int AudioConfig (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int Menu (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int Statistics (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int updateStatistics (intf_thread_t *, input_item_t *)
static int VolumeChanged (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int InputEvent (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static void __msg_rc (intf_thread_t *p_intf, const char *psz_fmt,...)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static void StateChanged (intf_thread_t *p_intf, input_thread_t *p_input)
static void RateChanged (intf_thread_t *p_intf, input_thread_t *p_input)
static void PositionChanged (intf_thread_t *p_intf, input_thread_t *p_input)
static void CacheChanged (intf_thread_t *p_intf)
static void print_playlist (intf_thread_t *p_intf, playlist_item_t *p_item, int i_level)

Variables

static const char * ppsz_input_state []

Define Documentation

#define ADD ( name,
type,
target   ) 

Value:

var_Create( p_intf, name, VLC_VAR_ ## type | VLC_VAR_ISCOMMAND ); \
    var_AddCallback( p_intf, name, target, NULL );

Referenced by RegisterCallbacks().

#define HOST_LONGTEXT

Value:

N_("Accept commands over a socket rather than stdin. " \
            "You can set the address and port the interface will bind to." )

#define HOST_TEXT   N_("TCP command input")

#define MAX_LINE_LENGTH   1024

Referenced by ReadCommand(), and Run().

#define msg_rc ( ...   )     __msg_rc( p_intf, __VA_ARGS__ )

#define POS_LONGTEXT

Value:

N_("Show the current position in seconds within the " \
                        "stream from time to time." )

#define POS_TEXT   N_("Show stream position")

#define SKIPSPACE (  )     { while( *p == ' ' || *p == '\t' ) p++; }

#define SKIPTRAILINGSPACE ( p,
 )     { char *e=d; while( e > p && (*(e-1)==' ' || *(e-1)=='\t') ){e--;*e=0;} }

#define STATUS_CHANGE   "status change: "

#define TTY_LONGTEXT   N_("Force the rc module to use stdin as if it was a TTY.")

#define TTY_TEXT   N_("Fake TTY")

#define UNIX_LONGTEXT

Value:

N_("Accept commands over a Unix socket rather than " \
                         "stdin." )

#define UNIX_TEXT   N_("UNIX socket command input")


Function Documentation

static void __msg_rc ( intf_thread_t p_intf,
const char *  psz_fmt,
  ... 
) [static]

References net_vaPrintf, and utf8_vfprintf().

static int Activate ( vlc_object_t p_this  )  [static]

static int AudioConfig ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static void CacheChanged ( intf_thread_t p_intf  )  [static]

static void Deactivate ( vlc_object_t p_this  )  [static]

static void Help ( intf_thread_t p_intf,
bool  b_longhelp 
) [static]

References _, and msg_rc.

static int Input ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int InputEvent ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int Intf ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int Menu ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static input_item_t * parse_MRL ( intf_thread_t p_intf,
char *  psz_mrl 
) [static]

static int Playlist ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static void PositionChanged ( intf_thread_t p_intf,
input_thread_t p_input 
) [static]

static void print_playlist ( intf_thread_t p_intf,
playlist_item_t p_item,
int  i_level 
) [static]

static int Quit ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static void RateChanged ( intf_thread_t p_intf,
input_thread_t p_input 
) [static]

bool ReadCommand ( intf_thread_t p_intf,
char *  p_buffer,
int *  pi_size 
) [static]

static void RegisterCallbacks ( intf_thread_t p_intf  )  [static]

static void Run ( intf_thread_t p_intf  )  [static]

static void StateChanged ( intf_thread_t p_intf,
input_thread_t p_input 
) [static]

static int Statistics ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int updateStatistics ( intf_thread_t p_intf,
input_item_t p_item 
) [static]

static int VideoConfig ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 

static int Volume ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int VolumeChanged ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int VolumeMove ( vlc_object_t p_this,
char const *  psz_cmd,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]


Variable Documentation

const char* ppsz_input_state[] [static]

Initial value:

 {
    [INIT_S] = N_("Initializing"),
    [OPENING_S] = N_("Opening"),
    [PLAYING_S] = N_("Play"),
    [PAUSE_S] = N_("Pause"),
    [END_S] = N_("End"),
    [ERROR_S] = N_("Error"),
}

Referenced by StateChanged().


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