Mercurial > hg > xmms-sid
view src/xmms-sid.h @ 3:279b1e12df2b
Updated to version 0.8-devel
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 03 Jun 2003 11:00:02 +0000 |
parents | 183e7cbc1036 |
children | 271be59be975 |
line wrap: on
line source
/* XMMS-SID - SIDPlay input plugin for X MultiMedia System (XMMS) Main header file Written by Matti "ccr" Hamalainen <ccr@tnsp.org> (few bits may still be by Willem Monsuwe) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define DEBUG #ifndef XMMS_SID_H #define XMMS_SID_H #ifdef __cplusplus extern "C" { #endif #include <glib.h> #include <xmms/plugin.h> /* * Generals */ #define XMMS_SID_NAME "XMMS-SID" /* Plugin name */ #define XMMS_SID_CONFIG_IDENT "XMMS-SID" /* Configuration file identifier */ #define XMMS_SID_BUFSIZE 4096 /* Size for some buffers */ extern InputPlugin xs_plugin_ip; /* * Plugin function prototypes */ void xs_init(void); void xs_close(void); int xs_is_our_file(char *); void xs_play_file(char *); void xs_stop(void); void xs_pause(short); void xs_seek(int); int xs_get_time(void); void xs_get_song_info(char *, char **, int *); // void xs_file_info_box(char *); #define LWW lookup_widget /* * Debugging and error handling macros */ #ifdef DEBUG #define XSDEBUG(x...) { fprintf(stderr, "XSDEBUG [%s:%d]: ", __FILE__, (int) __LINE__); fprintf(stderr, ## x); } #else #define XSDEBUG(x...) /* foo */ #endif #define XSERR(x...) { fprintf(stderr, XMMS_SID_NAME ": "); fprintf(stderr, ## x); } #ifdef __cplusplus } #endif #endif /* XMMS_SID_H */