00001 /* 00002 * ipod_error.h 00003 * 00004 * Duane Maxwell 00005 * (c) 2005 by Linspire Inc 00006 * 00007 * This library is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU Lesser General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTIBILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 */ 00021 00022 #ifndef __IPOD_ERROR_H__ 00023 #define __IPOD_ERROR_H__ 00024 00025 #include <stdarg.h> 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif 00030 00044 typedef void (*ipod_error_func)(void *userData,const char *fmt, va_list ap); 00045 00051 extern void ipod_error(const char *fmt,...); 00052 00058 extern void ipod_error_set_func(ipod_error_func func, void *userData); 00059 00060 #ifdef __cplusplus 00061 }; 00062 #endif 00063 00064 #endif