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@loafoe.com>
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
37typedef int(*interface_init_type)();
38typedef int(*interface_start_type)(Playlist *, int, char **);
39typedef int(*interface_running_type)();
40typedef int(*interface_stop_type)();
41typedef void(*interface_close_type)();
42
55
56typedef interface_plugin*(*interface_plugin_info_type)();
57
58#endif
int interface_version_type
Definition interface_plugin.h:36
int(* interface_init_type)()
Definition interface_plugin.h:37
void(* interface_close_type)()
Definition interface_plugin.h:41
int(* interface_start_type)(Playlist *, int, char **)
Definition interface_plugin.h:38
int(* interface_stop_type)()
Definition interface_plugin.h:40
struct _interface_plugin interface_plugin
int(* interface_running_type)()
Definition interface_plugin.h:39
Definition interface_plugin.h:44
void * handle
Definition interface_plugin.h:48
interface_start_type start
Definition interface_plugin.h:50
interface_version_type version
Definition interface_plugin.h:45
interface_init_type init
Definition interface_plugin.h:49
interface_stop_type stop
Definition interface_plugin.h:52
const char * name
Definition interface_plugin.h:46
interface_running_type running
Definition interface_plugin.h:51
const char * author
Definition interface_plugin.h:47
interface_close_type close
Definition interface_plugin.h:53