AlsaPlayer  0.99.82
interface_plugin.h
Go to the documentation of this file.
1 /* interface_plugin.h
2  * Copyright (C) 2001-2002 Andy Lo A Foe <andy@alsaplayer.org>
3  *
4  * This file is part of AlsaPlayer.
5  *
6  * AlsaPlayer is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * AlsaPlayer is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef __interface_plugin_h__
22 #define __interface_plugin_h__
23 
24 #include "CorePlayer.h"
25 #include "Playlist.h"
26 
27 /*
28  * Format of version number is 0x1000 + version
29  * So 0x1001 is *binary* format version 1
30  * THE VERSION NUMBER IS *NOT* A USER SERVICABLE PART!
31  */
32 
33 #define INTERFACE_PLUGIN_BASE_VERSION 0x1000
34 #define INTERFACE_PLUGIN_VERSION (INTERFACE_PLUGIN_BASE_VERSION + 4)
35 
37 typedef int(*interface_init_type)();
38 typedef int(*interface_start_type)(Playlist *, int, char **);
39 typedef int(*interface_running_type)();
40 typedef int(*interface_stop_type)();
41 typedef void(*interface_close_type)();
42 
43 typedef struct _interface_plugin
44 {
46  const char *name;
47  const char *author;
48  void *handle;
55 
56 typedef interface_plugin*(*interface_plugin_info_type)();
57 
58 #endif
interface_stop_type stop
Definition: interface_plugin.h:52
interface_version_type version
Definition: interface_plugin.h:45
int(* interface_init_type)()
Definition: interface_plugin.h:37
int(* interface_stop_type)()
Definition: interface_plugin.h:40
int(* interface_running_type)()
Definition: interface_plugin.h:39
interface_init_type init
Definition: interface_plugin.h:49
void(* interface_close_type)()
Definition: interface_plugin.h:41
interface_close_type close
Definition: interface_plugin.h:53
const char * name
Definition: interface_plugin.h:46
struct _interface_plugin interface_plugin
int(* interface_start_type)(Playlist *, int, char **)
Definition: interface_plugin.h:38
interface_running_type running
Definition: interface_plugin.h:51
void * handle
Definition: interface_plugin.h:48
int interface_version_type
Definition: interface_plugin.h:36
Definition: interface_plugin.h:43
const char * author
Definition: interface_plugin.h:47
interface_start_type start
Definition: interface_plugin.h:50