src/include/xmms/xmms_medialib.h File Reference

#include <glib.h>
#include <xmms/xmms_object.h>

Go to the source code of this file.

Defines

#define XMMS_MEDIALIB_ENTRY_PROPERTY_MIME   "mime"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ID   "id"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_URL   "url"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ARTIST   "artist"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ALBUM   "album"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_TITLE   "title"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_YEAR   "date"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_TRACKNR   "tracknr"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_GENRE   "genre"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_BITRATE   "bitrate"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_COMMENT   "comment"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_COMMENT_LANG   "commentlang"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_DURATION   "duration"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_CHANNEL   "channel"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_CHANNELS   "channels"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_SAMPLE_FMT   "sample_format"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_SAMPLERATE   "samplerate"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_LMOD   "lmod"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_GAIN_TRACK   "gain_track"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_GAIN_ALBUM   "gain_album"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_PEAK_TRACK   "peak_track"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_PEAK_ALBUM   "peak_album"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_COMPILATION   "compilation"
 Indicates that this album is a compilation.
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ALBUM_ID   "album_id"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ARTIST_ID   "artist_id"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_TRACK_ID   "track_id"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ADDED   "added"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_BPM   "bpm"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_LASTSTARTED   "laststarted"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_SIZE   "size"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_IS_VBR   "isvbr"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_SUBTUNES   "subtunes"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_CHAIN   "chain"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_TIMESPLAYED   "timesplayed"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_PARTOFSET   "partofset"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_PICTURE_FRONT   "picture_front"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_PICTURE_FRONT_MIME   "picture_front_mime"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_STARTMS   "startms"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_STOPMS   "stopms"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_STATUS   "status"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_DESCRIPTION   "description"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_GROUPING   "grouping"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_PERFORMER   "performer"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_CONDUCTOR   "conductor"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ARRANGER   "arranger"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ORIGINAL_ARTIST   "original_artist"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ALBUM_ARTIST   "album_artist"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_PUBLISHER   "publisher"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_COMPOSER   "composer"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ASIN   "asin"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_COPYRIGHT   "copyright"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_WEBSITE_ARTIST   "website_artist"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_WEBSITE_FILE   "website_file"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_WEBSITE_PUBLISHER   "website_publisher"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_WEBSITE_COPYRIGHT   "website_copyright"
#define xmms_medialib_begin()   _xmms_medialib_begin(FALSE, __FILE__, __LINE__)
#define xmms_medialib_begin_write()   _xmms_medialib_begin(TRUE, __FILE__, __LINE__)
#define xmms_medialib_entry_status_set(session, e, st)   xmms_medialib_entry_property_set_int_source(session, e, XMMS_MEDIALIB_ENTRY_PROPERTY_STATUS, st, 1)

Typedefs

typedef struct
xmms_medialib_session_St 
xmms_medialib_session_t

Functions

xmms_medialib_entry_t xmms_medialib_entry_new (xmms_medialib_session_t *session, const char *url, xmms_error_t *error)
 Welcome to a function that should be called something else.
xmmsv_t * xmms_medialib_entry_property_get_value (xmms_medialib_session_t *session, xmms_medialib_entry_t entry, const gchar *property)
gchar * xmms_medialib_entry_property_get_str (xmms_medialib_session_t *session, xmms_medialib_entry_t entry, const gchar *property)
 Retrieve a property from an entry.
gint xmms_medialib_entry_property_get_int (xmms_medialib_session_t *session, xmms_medialib_entry_t entry, const gchar *property)
 Retrieve a property as a int from a entry.
gboolean xmms_medialib_entry_property_set_str (xmms_medialib_session_t *session, xmms_medialib_entry_t entry, const gchar *property, const gchar *value)
 Set a entry property to a new value, overwriting the old value.
gboolean xmms_medialib_entry_property_set_int (xmms_medialib_session_t *session, xmms_medialib_entry_t entry, const gchar *property, gint value)
 Set a entry property to a new value, overwriting the old value.
void xmms_medialib_entry_send_added (xmms_medialib_entry_t entry)
 Trigger an added siginal to the client.
void xmms_medialib_entry_send_update (xmms_medialib_entry_t entry)
 Trigger a update signal to the client.
gchar * xmms_medialib_url_encode (const gchar *path)
xmms_medialib_session_t_xmms_medialib_begin (gboolean write, const char *file, int line)
 Session handling.
void xmms_medialib_end (xmms_medialib_session_t *session)

Variables

G_BEGIN_DECLS typedef gint32 xmms_medialib_entry_t

Define Documentation

 
#define xmms_medialib_begin (  )     _xmms_medialib_begin(FALSE, __FILE__, __LINE__)
 
#define xmms_medialib_begin_write (  )     _xmms_medialib_begin(TRUE, __FILE__, __LINE__)
#define XMMS_MEDIALIB_ENTRY_PROPERTY_ADDED   "added"

Definition at line 54 of file xmms_medialib.h.

Referenced by xmms_medialib_entry_cleanup().

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ALBUM   "album"

Definition at line 31 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ALBUM_ARTIST   "album_artist"

Definition at line 74 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ALBUM_ID   "album_id"

Definition at line 51 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ARRANGER   "arranger"

Definition at line 72 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ARTIST   "artist"

Definition at line 30 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ARTIST_ID   "artist_id"

Definition at line 52 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ASIN   "asin"

Definition at line 77 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_BITRATE   "bitrate"

Definition at line 36 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_BPM   "bpm"

Definition at line 55 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_CHAIN   "chain"

Definition at line 60 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_CHANNEL   "channel"

Definition at line 40 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_CHANNELS   "channels"

Definition at line 41 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_COMMENT   "comment"

Definition at line 37 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_COMMENT_LANG   "commentlang"

Definition at line 38 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_COMPILATION   "compilation"

Indicates that this album is a compilation.

Definition at line 50 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_COMPOSER   "composer"

Definition at line 76 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_CONDUCTOR   "conductor"

Definition at line 71 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_COPYRIGHT   "copyright"

Definition at line 78 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_DESCRIPTION   "description"

Definition at line 68 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_DURATION   "duration"

Definition at line 39 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_GAIN_ALBUM   "gain_album"

Definition at line 46 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_GAIN_TRACK   "gain_track"

Definition at line 45 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_GENRE   "genre"

Definition at line 35 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_GROUPING   "grouping"

Definition at line 69 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ID   "id"

Definition at line 28 of file xmms_medialib.h.

Referenced by xmms_medialib_entry_property_get_value().

#define XMMS_MEDIALIB_ENTRY_PROPERTY_IS_VBR   "isvbr"

Definition at line 58 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_LASTSTARTED   "laststarted"

Definition at line 56 of file xmms_medialib.h.

Referenced by xmms_medialib_entry_cleanup().

#define XMMS_MEDIALIB_ENTRY_PROPERTY_LMOD   "lmod"

Definition at line 44 of file xmms_medialib.h.

Referenced by xmms_medialib_entry_cleanup().

#define XMMS_MEDIALIB_ENTRY_PROPERTY_MIME   "mime"

Definition at line 27 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_ORIGINAL_ARTIST   "original_artist"

Definition at line 73 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_PARTOFSET   "partofset"

Definition at line 62 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_PEAK_ALBUM   "peak_album"

Definition at line 48 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_PEAK_TRACK   "peak_track"

Definition at line 47 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_PERFORMER   "performer"

Definition at line 70 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_PICTURE_FRONT   "picture_front"

Definition at line 63 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_PICTURE_FRONT_MIME   "picture_front_mime"

Definition at line 64 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_PUBLISHER   "publisher"

Definition at line 75 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_SAMPLE_FMT   "sample_format"

Definition at line 42 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_SAMPLERATE   "samplerate"

Definition at line 43 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_SIZE   "size"

Definition at line 57 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_STARTMS   "startms"

Definition at line 65 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_STATUS   "status"
#define XMMS_MEDIALIB_ENTRY_PROPERTY_STOPMS   "stopms"

Definition at line 66 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_SUBTUNES   "subtunes"

Definition at line 59 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_TIMESPLAYED   "timesplayed"

Definition at line 61 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_TITLE   "title"

Definition at line 32 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_TRACK_ID   "track_id"

Definition at line 53 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_TRACKNR   "tracknr"

Definition at line 34 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_URL   "url"

Definition at line 29 of file xmms_medialib.h.

Referenced by xmms_medialib_entry_cleanup(), and xmms_medialib_entry_new_encoded().

#define XMMS_MEDIALIB_ENTRY_PROPERTY_WEBSITE_ARTIST   "website_artist"

Definition at line 79 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_WEBSITE_COPYRIGHT   "website_copyright"

Definition at line 82 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_WEBSITE_FILE   "website_file"

Definition at line 80 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_WEBSITE_PUBLISHER   "website_publisher"

Definition at line 81 of file xmms_medialib.h.

#define XMMS_MEDIALIB_ENTRY_PROPERTY_YEAR   "date"

Definition at line 33 of file xmms_medialib.h.

#define xmms_medialib_entry_status_set ( session,
e,
st   )     xmms_medialib_entry_property_set_int_source(session, e, XMMS_MEDIALIB_ENTRY_PROPERTY_STATUS, st, 1)

Definition at line 106 of file xmms_medialib.h.


Typedef Documentation

typedef struct xmms_medialib_session_St xmms_medialib_session_t

Definition at line 87 of file xmms_medialib.h.


Function Documentation

gchar* xmms_medialib_url_encode ( const gchar *  path  ) 

Variable Documentation

G_BEGIN_DECLS typedef gint32 xmms_medialib_entry_t

Generated on Tue Feb 23 18:14:36 2010 for XMMS2 by  doxygen 1.6.1