![]() |
![]() |
![]() |
[Insert name here] Reference Manual | ![]() |
---|---|---|---|---|
TitleInput; typedef BmpTitleInput; #define XMMS_TITLEINPUT_SIZE #define XMMS_TITLEINPUT_VERSION #define XMMS_NEW_TITLEINPUT (input) TitleInput* bmp_title_input_new (void);void bmp_title_input_free (BmpTitleInput *input);gchar * xmms_get_titlestring (constgchar *fmt, TitleInput *input);GtkWidget * xmms_titlestring_descriptions (gchar *tags,gint columns);
typedef struct { gint __size; /* Set by bmp_title_input_new() */ gint __version; /* Ditto */ gchar *performer; /* %p */ gchar *album_name; /* %a */ gchar *track_name; /* %t */ gint track_number; /* %n */ gint year; /* %y */ gchar *date; /* %d */ gchar *genre; /* %g */ gchar *comment; /* %c */ gchar *file_name; /* %f */ const gchar *file_ext; /* %e *//* is not always strdup'ed, see xmms_input_get_song_info and plugins! */ gchar *file_path; /* %F */ gint length; /* not displayable */ gchar *formatter; /* not displayable */ gchar *custom; /* not displayable, for internal use */ time_t mtime; } TitleInput;
Tuple which is passed to xmms_get_titlestring()
. An input tuple
is allocated and initialized with bmp_title_input_new()
. Before
passing the struct to xmms_get_titlestring()
it should be filled
with appropriate field values.
|
Private field which describes the version of the TitleInput. |
|
Private field which describes the version of the TitleInput. |
|
The performer of the media that the tuple is describing. |
|
The name of the album that contains the media. |
|
The title of the media. |
|
The track number of the media. |
|
The year the media was published. |
|
The date the media was published. |
|
The genre of the media. |
|
Any comments attached to the media. |
|
The filename which refers to the media. |
const |
The file's extension. |
|
The path that the media is in. |
|
The length of the media. |
|
The format string that should be used. |
|
A custom field for miscellaneous information. |
|
The last modified time of the file. |
#define XMMS_TITLEINPUT_SIZE sizeof(TitleInput)
The size of the TitleInput object compiled into the library.
#define XMMS_TITLEINPUT_VERSION (1)
The version of the TitleInput object compiled into the library.
#define XMMS_NEW_TITLEINPUT(input) input = bmp_title_input_new();
Initializes a TitleInput object. Included for XMMS compatibility.
|
A TitleInput to initialize. |
TitleInput* bmp_title_input_new (void);
BmpTitleInput tuple factory.
Returns : |
A BmpTitleInput object. |
void bmp_title_input_free (BmpTitleInput *input);
Destroys a BmpTitleInput tuple.
|
A BmpTitleInput tuple to destroy. |
gchar * xmms_get_titlestring (constgchar *fmt, TitleInput *input);
Generates a formatted string from a tuple.
|
A format string. |
|
A tuple to use for data. |
Returns : |
A formatted tuple string. |