Mercurial > audlegacy
annotate libaudacious/titlestring.h @ 2239:bb4d730fbcd0 trunk
[svn] - fix sed
author | nenolod |
---|---|
date | Tue, 02 Jan 2007 22:05:31 -0800 |
parents | 53a3d5db6b58 |
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 |
2060 | 28 /** |
29 * TitleInput: | |
30 * @__size: Private field which describes the version of the TitleInput. | |
31 * @__version: Private field which describes the version of the TitleInput. | |
32 * @performer: The performer of the media that the tuple is describing. | |
33 * @album_name: The name of the album that contains the media. | |
34 * @track_name: The title of the media. | |
35 * @track_number: The track number of the media. | |
36 * @year: The year the media was published. | |
37 * @date: The date the media was published. | |
38 * @genre: The genre of the media. | |
39 * @comment: Any comments attached to the media. | |
40 * @file_name: The filename which refers to the media. | |
41 * @file_ext: The file's extension. | |
42 * @file_path: The path that the media is in. | |
43 * @length: The length of the media. | |
44 * @formatter: The format string that should be used. | |
45 * @mtime: The last modified time of the file. | |
46 * | |
47 * Tuple which is passed to xmms_get_titlestring(). An input tuple | |
48 * is allocated and initialized with bmp_title_input_new(). Before | |
0 | 49 * passing the struct to xmms_get_titlestring() it should be filled |
50 * with appropriate field values. | |
2060 | 51 **/ |
0 | 52 typedef struct { |
1588
15d92c51bde6
[svn] - modified time (mtime) has been introduced into tuple
yaz
parents:
1459
diff
changeset
|
53 gint __size; /* Set by bmp_title_input_new() */ |
0 | 54 gint __version; /* Ditto */ |
55 | |
56 gchar *performer; /* %p */ | |
57 gchar *album_name; /* %a */ | |
58 gchar *track_name; /* %t */ | |
59 gint track_number; /* %n */ | |
60 gint year; /* %y */ | |
61 gchar *date; /* %d */ | |
62 gchar *genre; /* %g */ | |
63 gchar *comment; /* %c */ | |
64 gchar *file_name; /* %f */ | |
65 const gchar *file_ext; /* %e *//* is not always strdup'ed, see xmms_input_get_song_info and plugins! */ | |
66 gchar *file_path; /* %F */ | |
1229 | 67 gint length; /* not displayable */ |
1355 | 68 gchar *formatter; /* not displayable */ |
1588
15d92c51bde6
[svn] - modified time (mtime) has been introduced into tuple
yaz
parents:
1459
diff
changeset
|
69 time_t mtime; |
0 | 70 } TitleInput; |
71 | |
2060 | 72 /** |
73 * BmpTitleInput: | |
74 * | |
75 * An alternate name for the #TitleInput object. | |
76 **/ | |
0 | 77 typedef TitleInput BmpTitleInput; |
78 | |
79 | |
80 /* | |
81 * Using a __size field helps the library functions detect plugins | |
82 * that use a possibly extended version of the struct. The __version | |
83 * field helps the library detect possible future incompatibilities in | |
84 * the struct layout. | |
85 */ | |
86 | |
2060 | 87 /** |
88 * XMMS_TITLEINPUT_SIZE: | |
89 * | |
90 * The size of the TitleInput object compiled into the library. | |
91 **/ | |
0 | 92 #define XMMS_TITLEINPUT_SIZE sizeof(TitleInput) |
2060 | 93 |
94 /** | |
95 * XMMS_TITLEINPUT_VERSION: | |
96 * | |
97 * The version of the TitleInput object compiled into the library. | |
98 **/ | |
0 | 99 #define XMMS_TITLEINPUT_VERSION (1) |
100 | |
2060 | 101 /** |
102 * XMMS_NEW_TITLEINPUT: | |
103 * @input: A TitleInput to initialize. | |
104 * | |
105 * Initializes a TitleInput object. Included for XMMS compatibility. | |
106 **/ | |
107 #define XMMS_NEW_TITLEINPUT(input) input = bmp_title_input_new(); | |
0 | 108 |
109 | |
110 G_BEGIN_DECLS | |
111 | |
112 TitleInput *bmp_title_input_new(void); | |
113 void bmp_title_input_free(BmpTitleInput * input); | |
114 | |
115 gchar *xmms_get_titlestring(const gchar * fmt, TitleInput * input); | |
2059 | 116 GtkWidget *xmms_titlestring_descriptions(gchar * tags, gint columns); |
0 | 117 |
118 G_END_DECLS | |
119 | |
120 #endif /* !XMMS_TITLESTRING_H */ |