ncurses.c File Reference

Include dependency graph for ncurses.c:


Data Structures

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

Defines

#define SEARCH_CHAIN_SIZE   20
#define OPEN_CHAIN_SIZE   50
#define BROWSE_TEXT   N_("Filebrowser starting point")
#define BROWSE_LONGTEXT
#define SHOW_ACS(x, c)

Enumerations

enum  {
  BOX_NONE, BOX_HELP, BOX_INFO, BOX_LOG,
  BOX_PLAYLIST, BOX_SEARCH, BOX_OPEN, BOX_BROWSE,
  BOX_META, BOX_OBJECTS, BOX_STATS
}
enum  {
  C_DEFAULT = 0, C_TITLE, C_PLAYLIST_1, C_PLAYLIST_2,
  C_PLAYLIST_3, C_BOX, C_STATUS, C_INFO,
  C_ERROR, C_WARNING, C_DEBUG, C_CATEGORY,
  C_FOLDER
}
enum  { VIEW_CATEGORY, VIEW_ONELEVEL }

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static void Close (vlc_object_t *)
 Releases resources.
static void Run (intf_thread_t *)
static void PlayPause (intf_thread_t *)
static void Eject (intf_thread_t *)
static int HandleKey (intf_thread_t *, int)
static void Redraw (intf_thread_t *, time_t *)
static playlist_item_tPlaylistGetRoot (intf_thread_t *)
static void PlaylistRebuild (intf_thread_t *)
static void PlaylistAddNode (intf_thread_t *, playlist_item_t *, int, const char *)
static void PlaylistDestroy (intf_thread_t *)
static int PlaylistChanged (vlc_object_t *, const char *, vlc_value_t, vlc_value_t, void *)
static bool PlaylistIsPlaying (playlist_t *, playlist_item_t *)
static void FindIndex (intf_thread_t *, playlist_t *)
static void SearchPlaylist (intf_thread_t *, char *)
static int SubSearchPlaylist (intf_thread_t *, char *, int, int)
static void ManageSlider (intf_thread_t *)
static void ReadDir (intf_thread_t *)
static void start_color_and_pairs (intf_thread_t *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static void DrawBox (WINDOW *win, int y, int x, int h, int w, const char *title, bool b_color)
static void DrawLine (WINDOW *win, int y, int x, int w)
static void DrawEmptyLine (WINDOW *win, int y, int x, int w)
static char * KeyToUTF8 (int i_key, char *psz_part)
static int RemoveLastUTF8Entity (char *psz, int len)
static void mvnprintw (int y, int x, int w, const char *p_fmt,...)
static void MainBoxWrite (intf_thread_t *p_intf, int l, int x, const char *p_fmt,...)
static void DumpObject (intf_thread_t *p_intf, int *l, vlc_object_t *p_obj, int i_level)
static int comp_dir_entries (const void *pp_dir_entry1, const void *pp_dir_entry2)

Define Documentation

#define BROWSE_LONGTEXT

Value:

N_( \
    "This option allows you to specify the directory the ncurses filebrowser " \
    "will show you initially.")

#define BROWSE_TEXT   N_("Filebrowser starting point")

#define OPEN_CHAIN_SIZE   50

Referenced by HandleKey().

#define SEARCH_CHAIN_SIZE   20

Referenced by HandleKey().

#define SHOW_ACS ( x,
 ) 

Value:

if(l >= p_sys->i_box_start && l - p_sys->i_box_start < p_sys->i_box_lines) \
        mvaddch( p_sys->i_box_y - p_sys->i_box_start + l, x, c )

Referenced by Redraw().


Enumeration Type Documentation

anonymous enum

Enumerator:
BOX_NONE 
BOX_HELP 
BOX_INFO 
BOX_LOG 
BOX_PLAYLIST 
BOX_SEARCH 
BOX_OPEN 
BOX_BROWSE 
BOX_META 
BOX_OBJECTS 
BOX_STATS 

anonymous enum

Enumerator:
C_DEFAULT 
C_TITLE 
C_PLAYLIST_1 
C_PLAYLIST_2 
C_PLAYLIST_3 
C_BOX 
C_STATUS 
C_INFO 
C_ERROR 
C_WARNING 
C_DEBUG 
C_CATEGORY 
C_FOLDER 

anonymous enum

Enumerator:
VIEW_CATEGORY 
VIEW_ONELEVEL 


Function Documentation

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

static int comp_dir_entries ( const void *  pp_dir_entry1,
const void *  pp_dir_entry2 
) [static]

static void DrawBox ( WINDOW *  win,
int  y,
int  x,
int  h,
int  w,
const char *  title,
bool  b_color 
) [static]

References C_BOX, C_DEFAULT, and i.

Referenced by Redraw().

static void DrawEmptyLine ( WINDOW *  win,
int  y,
int  x,
int  w 
) [static]

Referenced by Redraw().

static void DrawLine ( WINDOW *  win,
int  y,
int  x,
int  w 
) [static]

Referenced by Redraw().

static void DumpObject ( intf_thread_t p_intf,
int *  l,
vlc_object_t p_obj,
int  i_level 
) [static]

static void Eject ( intf_thread_t p_intf  )  [static]

static void FindIndex ( intf_thread_t p_intf,
playlist_t p_playlist 
) [static]

static int HandleKey ( intf_thread_t p_intf,
int  i_key 
) [static]

References aout_VolumeDown, aout_VolumeUp, asprintf(), intf_sys_t::b_box_plidx_follow, intf_sys_t::b_color, intf_sys_t::b_color_started, dir_entry_t::b_file, intf_sys_t::b_need_update, intf_sys_t::b_show_hidden_files, BOX_BROWSE, BOX_HELP, BOX_INFO, BOX_LOG, BOX_META, BOX_NONE, BOX_OBJECTS, BOX_OPEN, BOX_PLAYLIST, BOX_SEARCH, BOX_STATS, Eject(), intf_sys_t::f_slider, FindIndex(), intf_sys_t::i_before_search, intf_sys_t::i_box_bidx, intf_sys_t::i_box_lines, intf_sys_t::i_box_lines_total, intf_sys_t::i_box_plidx, intf_sys_t::i_box_start, intf_sys_t::i_box_type, playlist_item_t::i_children, intf_sys_t::i_current_view, intf_sys_t::i_dir_entries, intf_sys_t::i_plist_entries, playlist_item_array_t::i_size, input_GetVout(), playlist_t::items, KEY_BACKSPACE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_HOME, KEY_LEFT, KEY_RIGHT, KEY_UP, KeyToUTF8(), libvlc_Quit(), ManageSlider(), OPEN_CHAIN_SIZE, ORDER_NORMAL, ORDER_REVERSE, intf_sys_t::p_input, playlist_item_t::p_input, pl_item_t::p_item, p_item, intf_thread_t::p_libvlc, playlist_t::p_local_onelevel, intf_sys_t::p_node, playlist_item_t::p_parent, playlist_t::p_root_onelevel, intf_thread_t::p_sys, pl_Get, PL_LOCK, pl_Locked, PL_UNLOCK, pl_Unlocked, playlist_Add(), PLAYLIST_APPEND, playlist_Control(), playlist_CurrentPlayingItem(), playlist_DeleteFromInput(), PLAYLIST_END, PLAYLIST_GO, playlist_Next, playlist_NodeDelete(), playlist_Prev, playlist_RecursiveNodeSort(), playlist_Stop, PLAYLIST_VIEWPLAY, PlaylistGetRoot(), PlaylistIsPlaying(), PlaylistRebuild(), PlayPause(), intf_sys_t::pp_dir_entries, intf_sys_t::pp_plist, intf_sys_t::psz_current_dir, intf_sys_t::psz_old_search, intf_sys_t::psz_open_chain, intf_sys_t::psz_partial_keys, dir_entry_t::psz_path, intf_sys_t::psz_search_chain, ReadDir(), RemoveLastUTF8Entity(), SEARCH_CHAIN_SIZE, SearchPlaylist(), SORT_TITLE_NODES_FIRST, start_color_and_pairs(), strdup(), var_SetBool, var_ToggleBool, var_TriggerCallback, VIEW_CATEGORY, VIEW_ONELEVEL, vlc_object_release, and intf_sys_t::w.

Referenced by Run().

static char* KeyToUTF8 ( int  i_key,
char *  psz_part 
) [static]

References EnsureUTF8(), and FromLocaleDup().

Referenced by HandleKey().

static void MainBoxWrite ( intf_thread_t p_intf,
int  l,
int  x,
const char *  p_fmt,
  ... 
) [static]

static void ManageSlider ( intf_thread_t p_intf  )  [static]

static void mvnprintw ( int  y,
int  x,
int  w,
const char *  p_fmt,
  ... 
) [static]

References EnsureUTF8(), i, LocaleFree(), ToLocale(), and vasprintf().

Referenced by MainBoxWrite(), and Redraw().

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Status of this demuxer: Real Media format -----------------.

Basic chorus/flanger/delay audio filter This implements a variable delay filter for VLC.

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

static void PlaylistAddNode ( intf_thread_t p_intf,
playlist_item_t p_node,
int  i,
const char *  c 
) [static]

static int PlaylistChanged ( vlc_object_t p_this,
const char *  psz_variable,
vlc_value_t  oval,
vlc_value_t  nval,
void *  param 
) [static]

static void PlaylistDestroy ( intf_thread_t p_intf  )  [static]

static playlist_item_t * PlaylistGetRoot ( intf_thread_t p_intf  )  [static]

static bool PlaylistIsPlaying ( playlist_t p_playlist,
playlist_item_t p_item 
) [inline, static]

static void PlaylistRebuild ( intf_thread_t p_intf  )  [static]

static void PlayPause ( intf_thread_t p_intf  )  [static]

static void ReadDir ( intf_thread_t p_intf  )  [static]

static void Redraw ( intf_thread_t p_intf,
time_t *  t_last_refresh 
) [static]

References _, AOUT_VOLUME_MAX, aout_VolumeGet, asprintf(), AUDIO_ES, intf_sys_t::b_box_plidx_follow, intf_sys_t::b_color, input_thread_t::b_dead, dir_entry_t::b_file, intf_sys_t::b_need_update, BOX_BROWSE, BOX_HELP, BOX_INFO, BOX_LOG, BOX_META, BOX_OBJECTS, BOX_OPEN, BOX_PLAYLIST, BOX_SEARCH, BOX_STATS, c, C_CATEGORY, C_DEFAULT, C_FOLDER, C_INFO, C_PLAYLIST_1, C_STATUS, C_TITLE, CLOCK_FREQ, DrawBox(), DrawEmptyLine(), DrawLine(), DumpObject(), END_S, input_item_t::es, input_stats_t::f_demux_bitrate, input_stats_t::f_input_bitrate, input_stats_t::f_send_bitrate, intf_sys_t::f_slider, FindIndex(), i, intf_sys_t::i_box_bidx, intf_sys_t::i_box_lines, intf_sys_t::i_box_lines_total, intf_sys_t::i_box_plidx, intf_sys_t::i_box_start, intf_sys_t::i_box_type, intf_sys_t::i_box_y, es_format_t::i_cat, input_item_t::i_categories, intf_sys_t::i_current_view, input_stats_t::i_decoded_audio, input_stats_t::i_decoded_video, input_stats_t::i_demux_read_bytes, intf_sys_t::i_dir_entries, input_stats_t::i_displayed_pictures, input_item_t::i_es, info_category_t::i_infos, vlc_value_t::i_int, input_stats_t::i_lost_abuffers, input_stats_t::i_lost_pictures, input_stats_t::i_played_abuffers, intf_sys_t::i_plist_entries, input_stats_t::i_read_bytes, input_stats_t::i_sent_bytes, input_stats_t::i_sent_packets, vlc_value_t::i_time, INIT_S, input_GetItem(), input_item_GetURI(), input_stats_t::lock, input_item_t::lock, lock, MainBoxWrite(), MSTRTIME_MAX_SIZE, mvnprintw(), OPENING_S, playlist_item_t::p_input, intf_sys_t::p_input, pl_item_t::p_item, p_item, intf_thread_t::p_libvlc, input_item_t::p_meta, intf_sys_t::p_node, input_item_t::p_stats, intf_sys_t::p_sub, intf_thread_t::p_sys, PAUSE_S, pl_Get, PL_LOCK, PL_UNLOCK, PLAYING_S, playlist_CurrentInput(), playlist_CurrentPlayingItem(), PlaylistIsPlaying(), PlaylistRebuild(), input_item_t::pp_categories, intf_sys_t::pp_dir_entries, info_category_t::pp_infos, intf_sys_t::pp_plist, ppsz_type, pl_item_t::psz_display, info_t::psz_name, info_category_t::psz_name, intf_sys_t::psz_old_search, intf_sys_t::psz_open_chain, dir_entry_t::psz_path, intf_sys_t::psz_search_chain, info_t::psz_value, secstotimestr(), SHOW_ACS, strdup(), var_CountChoices, var_Get, var_GetBool, VIDEO_ES, VIEW_CATEGORY, VIEW_ONELEVEL, VLC_META_ALBUM, VLC_META_ART_URL, VLC_META_ARTIST, VLC_META_COPYRIGHT, VLC_META_DATE, VLC_META_DESCRIPTION, VLC_META_ENCODED_BY, VLC_META_GENRE, vlc_meta_Get(), VLC_META_LANGUAGE, VLC_META_NOW_PLAYING, VLC_META_PUBLISHER, VLC_META_RATING, VLC_META_SETTING, VLC_META_TITLE, VLC_META_TRACK_NUMBER, VLC_META_TRACKID, VLC_META_TYPE_COUNT, VLC_META_URL, VLC_MSG_QSIZE, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, vlc_object_release, and intf_sys_t::w.

Referenced by Run().

static int RemoveLastUTF8Entity ( char *  psz,
int  len 
) [inline, static]

Referenced by HandleKey().

static void Run ( intf_thread_t p_intf  )  [static]

static void SearchPlaylist ( intf_thread_t p_intf,
char *  psz_searchstring 
) [static]

static void start_color_and_pairs ( intf_thread_t p_intf  )  [static]

static int SubSearchPlaylist ( intf_thread_t p_intf,
char *  psz_searchstring,
int  i_start,
int  i_stop 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


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