00001 /* interface_plugin.h 00002 * Copyright (C) 2001-2002 Andy Lo A Foe <andy@alsaplayer.org> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 * 00018 * 00019 * 00020 * $Id: interface_plugin.h,v 1.2 2002/04/10 15:30:04 adnans Exp $ 00021 * 00022 */ 00023 00024 #ifndef __interface_plugin_h__ 00025 #define __interface_plugin_h__ 00026 00027 #include "CorePlayer.h" 00028 #include "Playlist.h" 00029 00030 /* 00031 * Format of version number is 0x1000 + version 00032 * So 0x1001 is *binary* format version 1 00033 * THE VERSION NUMBER IS *NOT* A USER SERVICABLE PART! 00034 */ 00035 00036 #define INTERFACE_PLUGIN_BASE_VERSION 0x1000 00037 #define INTERFACE_PLUGIN_VERSION (INTERFACE_PLUGIN_BASE_VERSION + 4) 00038 00039 typedef int interface_version_type; 00040 typedef int(*interface_init_type)(); 00041 typedef int(*interface_start_type)(Playlist *, int, char **); 00042 typedef int(*interface_running_type)(); 00043 typedef int(*interface_stop_type)(); 00044 typedef void(*interface_close_type)(); 00045 00046 typedef struct _interface_plugin 00047 { 00048 interface_version_type version; 00049 char *name; 00050 char *author; 00051 void *handle; 00052 interface_init_type init; 00053 interface_start_type start; 00054 interface_running_type running; 00055 interface_stop_type stop; 00056 interface_close_type close; 00057 } interface_plugin; 00058 00059 typedef interface_plugin*(*interface_plugin_info_type)(); 00060 00061 #endif