Mercurial > audlegacy
annotate libaudacious/titlestring.h @ 1532:f74a6ba233c2 trunk
[svn] - allow configdb::pnxmms::preset to set what pn preset to load on start
author | nenolod |
---|---|
date | Tue, 08 Aug 2006 02:19:55 -0700 |
parents | 705d4c089fce |
children | 15d92c51bde6 |
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> | |
25 | |
26 | |
27 /* | |
28 * Struct which is passed to xmms_get_titlestring(). An input struct | |
29 * is allocated and initialized with XMMS_NEW_TITLEINPUT(). Before | |
30 * passing the struct to xmms_get_titlestring() it should be filled | |
31 * with appropriate field values. | |
32 */ | |
33 | |
34 typedef struct { | |
35 gint __size; /* Set by XMMS_NEW_TITLEINPUT() */ | |
36 gint __version; /* Ditto */ | |
37 | |
38 gchar *performer; /* %p */ | |
39 gchar *album_name; /* %a */ | |
40 gchar *track_name; /* %t */ | |
41 gint track_number; /* %n */ | |
42 gint year; /* %y */ | |
43 gchar *date; /* %d */ | |
44 gchar *genre; /* %g */ | |
45 gchar *comment; /* %c */ | |
46 gchar *file_name; /* %f */ | |
47 const gchar *file_ext; /* %e *//* is not always strdup'ed, see xmms_input_get_song_info and plugins! */ | |
48 gchar *file_path; /* %F */ | |
1229 | 49 gint length; /* not displayable */ |
1355 | 50 gchar *formatter; /* not displayable */ |
0 | 51 } TitleInput; |
52 | |
53 typedef TitleInput BmpTitleInput; | |
54 | |
55 | |
56 /* | |
57 * Using a __size field helps the library functions detect plugins | |
58 * that use a possibly extended version of the struct. The __version | |
59 * field helps the library detect possible future incompatibilities in | |
60 * the struct layout. | |
61 */ | |
62 | |
63 #define XMMS_TITLEINPUT_SIZE sizeof(TitleInput) | |
64 #define XMMS_TITLEINPUT_VERSION (1) | |
65 | |
66 #define XMMS_NEW_TITLEINPUT(input) G_STMT_START { \ | |
67 input = g_new0(TitleInput, 1); \ | |
68 input->__size = XMMS_TITLEINPUT_SIZE; \ | |
69 input->__version = XMMS_TITLEINPUT_VERSION; \ | |
70 } G_STMT_END | |
71 | |
72 | |
73 G_BEGIN_DECLS | |
74 | |
75 TitleInput *bmp_title_input_new(void); | |
76 void bmp_title_input_free(BmpTitleInput * input); | |
77 | |
78 gchar *xmms_get_titlestring(const gchar * fmt, TitleInput * input); | |
79 GtkWidget *xmms_titlestring_descriptions(gchar * tags, gint rows); | |
80 | |
81 G_END_DECLS | |
82 | |
83 #endif /* !XMMS_TITLESTRING_H */ |