Mercurial > audlegacy
annotate audacious/titlestring.h @ 1938:1d9c1026d9f8 trunk
[svn] - DoubleSize support.
This has bugs, the most notable one being that DoubleSize only works
right if you restart the player.
The second bug is rather obvious too. No osmosis skinengine. No
TinyPlayer. Classic-esque skinengine only. This is because the
doublesize algorithm hates you and wants you to go die in a fire.
author | nenolod |
---|---|
date | Sun, 05 Nov 2006 04:43:16 -0800 |
parents | 936135be464f |
children |
rev | line source |
---|---|
0 | 1 /* |
2 * Copyright (C) 2001, Espen Skoglund <esk@ira.uka.de> | |
3 * | |
4 * This program is free software; you can redistribute it and/or | |
5 * modify it under the terms of the GNU General Public License | |
6 * as published by the Free Software Foundation; either version 2 | |
7 * of the License, or (at your option) any later version. | |
8 * | |
9 * This program is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License | |
15 * along with this program; if not, write to the Free Software | |
1458
f12d7e208b43
[svn] Update FSF address in copyright notices. Update autotools templates.
chainsaw
parents:
1355
diff
changeset
|
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
1459 | 17 * 02110-1301, USA. |
0 | 18 * |
19 */ | |
20 #ifndef XMMS_TITLESTRING_H | |
21 #define XMMS_TITLESTRING_H | |
22 | |
23 #include <glib.h> | |
24 #include <gtk/gtk.h> | |
1633 | 25 #include <unistd.h> |
26 #include <time.h> | |
0 | 27 |
28 /* | |
29 * Struct which is passed to xmms_get_titlestring(). An input struct | |
30 * is allocated and initialized with XMMS_NEW_TITLEINPUT(). Before | |
31 * passing the struct to xmms_get_titlestring() it should be filled | |
32 * with appropriate field values. | |
33 */ | |
34 | |
35 typedef struct { | |
1588
15d92c51bde6
[svn] - modified time (mtime) has been introduced into tuple
yaz
parents:
1459
diff
changeset
|
36 gint __size; /* Set by bmp_title_input_new() */ |
0 | 37 gint __version; /* Ditto */ |
38 | |
39 gchar *performer; /* %p */ | |
40 gchar *album_name; /* %a */ | |
41 gchar *track_name; /* %t */ | |
42 gint track_number; /* %n */ | |
43 gint year; /* %y */ | |
44 gchar *date; /* %d */ | |
45 gchar *genre; /* %g */ | |
46 gchar *comment; /* %c */ | |
47 gchar *file_name; /* %f */ | |
48 const gchar *file_ext; /* %e *//* is not always strdup'ed, see xmms_input_get_song_info and plugins! */ | |
49 gchar *file_path; /* %F */ | |
1588
15d92c51bde6
[svn] - modified time (mtime) has been introduced into tuple
yaz
parents:
1459
diff
changeset
|
50 gint length; /* not displayable */ |
15d92c51bde6
[svn] - modified time (mtime) has been introduced into tuple
yaz
parents:
1459
diff
changeset
|
51 gchar *formatter; /* not displayable */ |
15d92c51bde6
[svn] - modified time (mtime) has been introduced into tuple
yaz
parents:
1459
diff
changeset
|
52 time_t mtime; /* time of modified */ |
0 | 53 } TitleInput; |
54 | |
55 typedef TitleInput BmpTitleInput; | |
56 | |
57 | |
58 /* | |
59 * Using a __size field helps the library functions detect plugins | |
60 * that use a possibly extended version of the struct. The __version | |
61 * field helps the library detect possible future incompatibilities in | |
62 * the struct layout. | |
63 */ | |
64 | |
65 #define XMMS_TITLEINPUT_SIZE sizeof(TitleInput) | |
66 #define XMMS_TITLEINPUT_VERSION (1) | |
67 | |
68 #define XMMS_NEW_TITLEINPUT(input) G_STMT_START { \ | |
69 input = g_new0(TitleInput, 1); \ | |
70 input->__size = XMMS_TITLEINPUT_SIZE; \ | |
71 input->__version = XMMS_TITLEINPUT_VERSION; \ | |
72 } G_STMT_END | |
73 | |
74 | |
75 G_BEGIN_DECLS | |
76 | |
77 TitleInput *bmp_title_input_new(void); | |
78 void bmp_title_input_free(BmpTitleInput * input); | |
79 | |
80 gchar *xmms_get_titlestring(const gchar * fmt, TitleInput * input); | |
81 GtkWidget *xmms_titlestring_descriptions(gchar * tags, gint rows); | |
82 | |
83 G_END_DECLS | |
84 | |
85 #endif /* !XMMS_TITLESTRING_H */ |