AlsaPlayer: interface_plugin.h Source File

AlsaPlayer 0.99.81

- Main Page
- Data Structures
- Files

- File List
- Globals

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 * $Id: interface_plugin.h 1344 2010-11-07 20:38:05Z dominique_libre $
20 *
21 */
22
23 #ifndef __interface_plugin_h__
24 #define __interface_plugin_h__
25
26 #include "CorePlayer.h"
27 #include "Playlist.h"
28
29 /*
30 * Format of version number is 0x1000 + version
31 * So 0x1001 is *binary* format version 1
32 * THE VERSION NUMBER IS *NOT* A USER SERVICABLE PART!
33 */
34
35 #define INTERFACE_PLUGIN_BASE_VERSION 0x1000
36 #define INTERFACE_PLUGIN_VERSION (INTERFACE_PLUGIN_BASE_VERSION + 4)
37
38 typedef int interface_version_type;
39 typedef int(*interface_init_type)();
40 typedef int(*interface_start_type)(Playlist *, int, char **);
41 typedef int(*interface_running_type)();
42 typedef int(*interface_stop_type)();
43 typedef void(*interface_close_type)();
44
45 typedef struct _interface_plugin
46 {
47 interface_version_type version;
48 const char *name;
49 const char *author;
50 void *handle;
51 interface_init_type init;
52 interface_start_type start;
53 interface_running_type running;
54 interface_stop_type stop;
55 interface_close_type close;
56 } interface_plugin;
57
58 typedef interface_plugin*(*interface_plugin_info_type)();
59
60 #endif
_interface_plugin::stop
interface_stop_type stop
Definition: interface_plugin.h:54
_interface_plugin::version
interface_version_type version
Definition: interface_plugin.h:47
_interface_plugin::init
interface_init_type init
Definition: interface_plugin.h:51
interface_close_type
void(* interface_close_type)()
Definition: interface_plugin.h:43
interface_start_type
int(* interface_start_type)(Playlist *, int, char **)
Definition: interface_plugin.h:40
_interface_plugin::close
interface_close_type close
Definition: interface_plugin.h:55
interface_stop_type
int(* interface_stop_type)()
Definition: interface_plugin.h:42
_interface_plugin::name
const char * name
Definition: interface_plugin.h:48
interface_plugin
struct _interface_plugin interface_plugin
_interface_plugin::running
interface_running_type running
Definition: interface_plugin.h:53
_interface_plugin::handle
void * handle
Definition: interface_plugin.h:50
interface_version_type
int interface_version_type
Definition: interface_plugin.h:38
interface_init_type
int(* interface_init_type)()
Definition: interface_plugin.h:39
interface_running_type
int(* interface_running_type)()
Definition: interface_plugin.h:41
_interface_plugin
Definition: interface_plugin.h:45
_interface_plugin::author
const char * author
Definition: interface_plugin.h:49
_interface_plugin::start
interface_start_type start
Definition: interface_plugin.h:52