comparison src/xmms-sid.h @ 24:271be59be975

Lots of changes
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 07 Jun 2003 12:42:05 +0000
parents 279b1e12df2b
children 1788f4ce6a44
comparison
equal deleted inserted replaced
23:469efc05e01e 24:271be59be975
27 27
28 #ifdef __cplusplus 28 #ifdef __cplusplus
29 extern "C" { 29 extern "C" {
30 #endif 30 #endif
31 31
32 #include <config.h>
32 #include <glib.h> 33 #include <glib.h>
33 #include <xmms/plugin.h> 34 #include <xmms/plugin.h>
34 35
35 /* 36 /*
36 * Generals 37 * Generals
37 */ 38 */
38 #define XMMS_SID_NAME "XMMS-SID" /* Plugin name */ 39 #define XS_CONFIG_IDENT "XMMS-SID" /* Configuration file identifier */
39 #define XMMS_SID_CONFIG_IDENT "XMMS-SID" /* Configuration file identifier */ 40 #define XS_BUFSIZE (4096) /* Size for some buffers */
40 #define XMMS_SID_BUFSIZE 4096 /* Size for some buffers */
41 41
42 42
43 extern InputPlugin xs_plugin_ip; 43 extern InputPlugin xs_plugin_ip;
44 44
45 45
54 void xs_pause(short); 54 void xs_pause(short);
55 void xs_seek(int); 55 void xs_seek(int);
56 int xs_get_time(void); 56 int xs_get_time(void);
57 void xs_get_song_info(char *, char **, int *); 57 void xs_get_song_info(char *, char **, int *);
58 // void xs_file_info_box(char *); 58 // void xs_file_info_box(char *);
59 void xs_aboutbox(void);
59 60
60
61 #define LWW lookup_widget
62 61
63 /* 62 /*
64 * Debugging and error handling macros 63 * Debugging and error handling macros
65 */ 64 */
66 #ifdef DEBUG 65 #ifdef DEBUG
67 #define XSDEBUG(x...) { fprintf(stderr, "XSDEBUG [%s:%d]: ", __FILE__, (int) __LINE__); fprintf(stderr, ## x); } 66 #define XSDEBUG(x...) { fprintf(stderr, "XSDEBUG [%s:%d]: ", __FILE__, (int) __LINE__); fprintf(stderr, ## x); }
68 #else 67 #else
69 #define XSDEBUG(x...) /* foo */ 68 #define XSDEBUG(x...) /* foo */
70 #endif 69 #endif
71 70
72 #define XSERR(x...) { fprintf(stderr, XMMS_SID_NAME ": "); fprintf(stderr, ## x); } 71 #define XSERR(x...) { fprintf(stderr, PACKAGE_NAME ": "); fprintf(stderr, ## x); }
73 72
74 73
75 #ifdef __cplusplus 74 #ifdef __cplusplus
76 } 75 }
77 #endif 76 #endif