1
|
1 /*
|
3
|
2 XMMS-SID - SIDPlay input plugin for X MultiMedia System (XMMS)
|
1
|
3
|
|
4 Main header file
|
|
5
|
3
|
6 Written by Matti "ccr" Hamalainen <ccr@tnsp.org>
|
1
|
7 (few bits may still be by Willem Monsuwe)
|
|
8
|
|
9 This program is free software; you can redistribute it and/or modify
|
|
10 it under the terms of the GNU General Public License as published by
|
|
11 the Free Software Foundation; either version 2 of the License, or
|
|
12 (at your option) any later version.
|
|
13
|
|
14 This program is distributed in the hope that it will be useful,
|
|
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
17 GNU General Public License for more details.
|
|
18
|
|
19 You should have received a copy of the GNU General Public License
|
|
20 along with this program; if not, write to the Free Software
|
|
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
22 */
|
3
|
23 #define DEBUG
|
1
|
24
|
3
|
25 #ifndef XMMS_SID_H
|
|
26 #define XMMS_SID_H
|
1
|
27
|
|
28 #ifdef __cplusplus
|
|
29 extern "C" {
|
|
30 #endif
|
|
31
|
|
32 #include <glib.h>
|
|
33 #include <xmms/plugin.h>
|
|
34
|
|
35 /*
|
3
|
36 * Generals
|
1
|
37 */
|
3
|
38 #define XMMS_SID_NAME "XMMS-SID" /* Plugin name */
|
|
39 #define XMMS_SID_CONFIG_IDENT "XMMS-SID" /* Configuration file identifier */
|
|
40 #define XMMS_SID_BUFSIZE 4096 /* Size for some buffers */
|
1
|
41
|
|
42
|
3
|
43 extern InputPlugin xs_plugin_ip;
|
1
|
44
|
|
45
|
|
46 /*
|
3
|
47 * Plugin function prototypes
|
1
|
48 */
|
|
49 void xs_init(void);
|
3
|
50 void xs_close(void);
|
1
|
51 int xs_is_our_file(char *);
|
|
52 void xs_play_file(char *);
|
|
53 void xs_stop(void);
|
|
54 void xs_pause(short);
|
|
55 void xs_seek(int);
|
|
56 int xs_get_time(void);
|
|
57 void xs_get_song_info(char *, char **, int *);
|
3
|
58 // void xs_file_info_box(char *);
|
1
|
59
|
|
60
|
3
|
61 #define LWW lookup_widget
|
1
|
62
|
|
63 /*
|
|
64 * Debugging and error handling macros
|
|
65 */
|
|
66 #ifdef DEBUG
|
|
67 #define XSDEBUG(x...) { fprintf(stderr, "XSDEBUG [%s:%d]: ", __FILE__, (int) __LINE__); fprintf(stderr, ## x); }
|
|
68 #else
|
|
69 #define XSDEBUG(x...) /* foo */
|
|
70 #endif
|
|
71
|
|
72 #define XSERR(x...) { fprintf(stderr, XMMS_SID_NAME ": "); fprintf(stderr, ## x); }
|
|
73
|
|
74
|
|
75 #ifdef __cplusplus
|
|
76 }
|
|
77 #endif
|
3
|
78 #endif /* XMMS_SID_H */
|