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