
Data Structures | |
| struct | audioscrobbler_song_t |
| struct | intf_sys_t |
| Per-interface private state. More... | |
Defines | |
| #define | QUEUE_MAX 50 |
| #define | USERNAME_TEXT N_("Username") |
| #define | USERNAME_LONGTEXT N_("The username of your last.fm account") |
| #define | PASSWORD_TEXT N_("Password") |
| #define | PASSWORD_LONGTEXT N_("The password of your last.fm account") |
| #define | URL_TEXT N_("Scrobbler URL") |
| #define | URL_LONGTEXT N_("The URL set for an alternative scrobbler engine") |
| #define | VLC_AUDIOSCROBBLER_EFATAL -69 |
| #define | CLIENT_NAME PACKAGE |
| #define | CLIENT_VERSION VERSION |
| #define | POST_REQUEST |
| #define | QUEUE_COPY(a) p_sys->p_queue[p_sys->i_songs].a = p_sys->p_current_song.a |
| #define | QUEUE_COPY_NULL(a) |
| #define | ALLOC_ITEM_META(a, b) |
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 int | ItemChange (vlc_object_t *, const char *, vlc_value_t, vlc_value_t, void *) |
| static int | PlayingChange (vlc_object_t *, const char *, vlc_value_t, vlc_value_t, void *) |
| static void | AddToQueue (intf_thread_t *) |
| static int | Handshake (intf_thread_t *) |
| static int | ReadMetaData (intf_thread_t *) |
| static void | DeleteSong (audioscrobbler_song_t *) |
| static int | ParseURL (char *, char **, char **, int *) |
| static void | HandleInterval (mtime_t *, unsigned int *) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
Value:
psz_meta = input_item_Get##b( p_item ); \ if( psz_meta && *psz_meta ) \ { \ a = encode_URI_component( psz_meta ); \ if( !a ) \ { \ vlc_mutex_unlock( &p_sys->lock ); \ vlc_object_release( p_input ); \ free( psz_meta ); \ return VLC_ENOMEM; \ } \ }
Referenced by ReadMetaData().
| #define CLIENT_NAME PACKAGE |
Referenced by Handshake().
| #define CLIENT_VERSION VERSION |
Referenced by Handshake().
| #define PASSWORD_LONGTEXT N_("The password of your last.fm account") |
| #define PASSWORD_TEXT N_("Password") |
| #define POST_REQUEST |
Value:
"POST /%s HTTP/1.1\n" \ "Accept-Encoding: identity\n" \ "Content-length: %u\n" \ "Connection: close\n" \ "Content-type: application/x-www-form-urlencoded\n" \ "Host: %s\n" \ "User-agent: VLC media player/%s\r\n" \ "\r\n" \ "%s\r\n" \ "\r\n"
Referenced by Run().
| #define QUEUE_COPY | ( | a | ) | p_sys->p_queue[p_sys->i_songs].a = p_sys->p_current_song.a |
Referenced by AddToQueue().
| #define QUEUE_COPY_NULL | ( | a | ) |
| #define QUEUE_MAX 50 |
Referenced by AddToQueue().
| #define URL_LONGTEXT N_("The URL set for an alternative scrobbler engine") |
| #define URL_TEXT N_("Scrobbler URL") |
| #define USERNAME_LONGTEXT N_("The username of your last.fm account") |
| #define USERNAME_TEXT N_("Username") |
| #define VLC_AUDIOSCROBBLER_EFATAL -69 |
Referenced by Handshake(), and Run().
| static void AddToQueue | ( | intf_thread_t * | p_this | ) | [static] |
References intf_sys_t::b_submit, DeleteSong(), audioscrobbler_song_t::i_l, intf_sys_t::i_songs, audioscrobbler_song_t::i_start, intf_sys_t::lock, mdate(), msg_Dbg, msg_Warn, intf_sys_t::p_current_song, intf_thread_t::p_sys, audioscrobbler_song_t::psz_a, audioscrobbler_song_t::psz_t, QUEUE_COPY, QUEUE_COPY_NULL, QUEUE_MAX, intf_sys_t::time_total_pauses, vlc_cond_signal(), vlc_mutex_lock(), vlc_mutex_unlock(), and intf_sys_t::wait.
Referenced by PlayingChange().
| 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.
| p_this | pointer to this filter object | |
| p_this,: | the filter object |
| static void DeleteSong | ( | audioscrobbler_song_t * | p_song | ) | [static] |
References FREENULL, audioscrobbler_song_t::psz_a, audioscrobbler_song_t::psz_b, audioscrobbler_song_t::psz_m, audioscrobbler_song_t::psz_n, and audioscrobbler_song_t::psz_t.
Referenced by AddToQueue(), and Run().
| static void HandleInterval | ( | mtime_t * | next, | |
| unsigned int * | i_interval | |||
| ) | [static] |
| static int Handshake | ( | intf_thread_t * | p_this | ) | [static] |
References _, AddMD5(), asprintf(), CLIENT_NAME, CLIENT_VERSION, dialog_Fatal, EndMD5(), intf_sys_t::i_submit_port, InitMD5(), msg_Err, oom, p_stream, intf_thread_t::p_sys, ParseURL(), intf_sys_t::psz_auth_token, psz_md5_hash(), intf_sys_t::psz_submit_file, intf_sys_t::psz_submit_host, stream_Delete(), stream_Read(), stream_UrlNew, strndup(), var_InheritString, VLC_AUDIOSCROBBLER_EFATAL, VLC_EGENERIC, VLC_ENOMEM, VLC_ENOVAR, and VLC_SUCCESS.
Referenced by Run().
| static int ItemChange | ( | vlc_object_t * | p_this, | |
| const char * | psz_var, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References input_thread_t::b_dead, intf_sys_t::b_meta_read, intf_sys_t::b_state_cb, intf_sys_t::b_submit, audioscrobbler_song_t::date, audioscrobbler_song_t::i_start, input_GetItem(), input_item_IsPreparsed(), mdate(), msg_Dbg, intf_sys_t::p_current_song, p_item, intf_thread_t::p_sys, pl_Get, PlayingChange(), playlist_CurrentInput(), ReadMetaData(), intf_sys_t::time_total_pauses, var_AddCallback, var_CountChoices, vlc_object_release, VLC_SUCCESS, and VLC_UNUSED.
| 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:
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.
| p_this,: | the vlc_object |
| p_this | ||
| p_this,: | the filter object |
| static int ParseURL | ( | char * | psz_url, | |
| char ** | psz_host, | |||
| char ** | psz_file, | |||
| int * | i_port | |||
| ) | [static] |
References FREENULL, strdup(), strndup(), VLC_EGENERIC, VLC_ENOMEM, and VLC_SUCCESS.
Referenced by Handshake().
| static int PlayingChange | ( | vlc_object_t * | p_this, | |
| const char * | psz_var, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References AddToQueue(), intf_sys_t::b_meta_read, END_S, vlc_value_t::i_int, INPUT_EVENT_STATE, mdate(), msg_Dbg, intf_thread_t::p_sys, PAUSE_S, PLAYING_S, ReadMetaData(), intf_sys_t::time_pause, intf_sys_t::time_total_pauses, var_CountChoices, var_Get, VLC_SUCCESS, and VLC_UNUSED.
Referenced by ItemChange().
| static int ReadMetaData | ( | intf_thread_t * | p_this | ) | [static] |
References ALLOC_ITEM_META, intf_sys_t::b_meta_read, intf_sys_t::b_submit, audioscrobbler_song_t::i_l, input_GetItem(), input_item_GetDuration(), intf_sys_t::lock, msg_Dbg, intf_sys_t::p_current_song, p_item, intf_thread_t::p_sys, pl_Get, playlist_CurrentInput(), audioscrobbler_song_t::psz_a, audioscrobbler_song_t::psz_b, audioscrobbler_song_t::psz_m, audioscrobbler_song_t::psz_n, audioscrobbler_song_t::psz_t, VLC_EGENERIC, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_object_release, and VLC_SUCCESS.
Referenced by ItemChange(), and PlayingChange().
| static void Run | ( | intf_thread_t * | p_intf | ) | [static] |
References _, asprintf(), intf_sys_t::b_handshaked, audioscrobbler_song_t::date, DeleteSong(), dialog_Fatal, HandleInterval(), Handshake(), intf_sys_t::i_interval, audioscrobbler_song_t::i_l, intf_sys_t::i_songs, intf_sys_t::i_submit_port, intf_sys_t::lock, mdate(), msg_Dbg, msg_Err, msg_Warn, mutex_cleanup_push, net_Close, net_ConnectTCP, net_Printf, net_Read, intf_sys_t::next_exchange, intf_sys_t::p_queue, intf_thread_t::p_sys, POST_REQUEST, audioscrobbler_song_t::psz_a, intf_sys_t::psz_auth_token, audioscrobbler_song_t::psz_b, audioscrobbler_song_t::psz_m, audioscrobbler_song_t::psz_n, intf_sys_t::psz_submit_file, intf_sys_t::psz_submit_host, audioscrobbler_song_t::psz_t, VLC_AUDIOSCROBBLER_EFATAL, vlc_cleanup_run, vlc_cond_timedwait(), vlc_cond_wait(), VLC_EGENERIC, VLC_ENOMEM, VLC_ENOVAR, vlc_mutex_lock(), vlc_mutex_unlock(), vlc_restorecancel(), vlc_savecancel(), VLC_SUCCESS, and intf_sys_t::wait.
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
1.5.6