2
* * Copyright (C) 2009-2011 Ali <aliov@xfce.org>
4
* Licensed under the GNU General Public License Version 2
6
* This program 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 2 of the License, or
9
* (at your option) any later version.
11
* This program 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.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
#if !defined (__PAROLE_H_INSIDE__) && !defined (PAROLE_COMPILATION)
22
#error "Only <parole.h> can be included directly."
25
#ifndef __PAROLE_PROVIDER_PLUGIN_H__
26
#define __PAROLE_PROVIDER_PLUGIN_H__
29
#include <parole/parole-stream.h>
30
#include <parole/parole-provider-player.h>
34
#define PAROLE_TYPE_PROVIDER_PLUGIN (parole_provider_plugin_get_type ())
35
#define PAROLE_PROVIDER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PAROLE_TYPE_PROVIDER_PLUGIN, ParoleProviderPlugin))
36
#define PAROLE_IS_PROVIDER_PLUGIN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PAROLE_TYPE_PROVIDER_PLUGIN))
37
#define PAROLE_PROVIDER_PLUGIN_GET_INTERFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE((o), PAROLE_TYPE_PROVIDER_PLUGIN, ParoleProviderPluginIface))
39
typedef struct _ParoleProviderPluginIface ParoleProviderPluginIface;
40
typedef struct _ParoleProviderPlugin ParoleProviderPlugin;
42
struct _ParoleProviderPluginIface
44
GTypeInterface __parent__;
47
gboolean (*get_is_configurable) (ParoleProviderPlugin *provider);
49
void (*configure) (ParoleProviderPlugin *provider,
52
void (*set_player) (ParoleProviderPlugin *provider,
53
ParoleProviderPlayer *player);
56
GType parole_provider_plugin_get_type (void) G_GNUC_CONST;
58
gboolean parole_provider_plugin_get_is_configurable (ParoleProviderPlugin *provider);
60
void parole_provider_plugin_configure (ParoleProviderPlugin *provider,
63
void parole_provider_plugin_set_player (ParoleProviderPlugin *provider,
64
ParoleProviderPlayer *player);
67
#endif /* __PAROLE_PLUGIN_IFACE_H__ */