audioscrobbler.c File Reference

Include dependency graph for audioscrobbler.c:


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)

Define Documentation

#define ALLOC_ITEM_META ( a,
b   ) 

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   ) 

Value:

QUEUE_COPY( a ); \
    p_sys->p_current_song.a = NULL

Referenced by AddToQueue().

#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().


Function Documentation

static void AddToQueue ( intf_thread_t p_this  )  [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

static void DeleteSong ( audioscrobbler_song_t p_song  )  [static]

static void HandleInterval ( mtime_t next,
unsigned int *  i_interval 
) [static]

References mdate().

Referenced by Run().

static int Handshake ( intf_thread_t p_this  )  [static]

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

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 int ParseURL ( char *  psz_url,
char **  psz_host,
char **  psz_file,
int *  i_port 
) [static]

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

static int ReadMetaData ( intf_thread_t p_this  )  [static]

static void Run ( intf_thread_t p_intf  )  [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


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