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