Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
Main Page
Related Pages
Classes
Files
File List
File Members
src
audacious
plugins.h
Go to the documentation of this file.
1
/*
2
* plugins.h
3
* Copyright 2010 John Lindgren
4
*
5
* Redistribution and use in source and binary forms, with or without
6
* modification, are permitted provided that the following conditions are met:
7
*
8
* 1. Redistributions of source code must retain the above copyright notice,
9
* this list of conditions, and the following disclaimer.
10
*
11
* 2. Redistributions in binary form must reproduce the above copyright notice,
12
* this list of conditions, and the following disclaimer in the documentation
13
* provided with the distribution.
14
*
15
* This software is provided "as is" and without any warranty, express or
16
* implied. In no event shall the authors be liable for any damages arising from
17
* the use of this software.
18
*/
19
20
#ifndef AUDACIOUS_PLUGINS_H
21
#define AUDACIOUS_PLUGINS_H
22
23
#include <
audacious/api.h
>
24
#include <
audacious/types.h
>
25
#include <
libaudcore/core.h
>
26
27
typedef
bool_t
(*
PluginForEachFunc
) (
PluginHandle
*
plugin
,
void
* data);
28
29
#define AUD_API_NAME PluginsAPI
30
#define AUD_API_SYMBOL plugins_api
31
32
#ifdef _AUDACIOUS_CORE
33
34
#include "
api-local-begin.h
"
35
#include "
plugins-api.h
"
36
#include "
api-local-end.h
"
37
38
enum
{
39
INPUT_KEY_SCHEME,
40
INPUT_KEY_EXTENSION,
41
INPUT_KEY_MIME,
42
INPUT_KEYS};
43
44
/* plugin-init.c */
45
void
start_plugins_one
(
void
);
46
void
start_plugins_two
(
void
);
47
void
stop_plugins_two
(
void
);
48
void
stop_plugins_one
(
void
);
49
50
/* plugin-registry.c */
51
void
plugin_registry_load
(
void
);
52
void
plugin_registry_prune
(
void
);
53
void
plugin_registry_save
(
void
);
54
55
void
plugin_register
(
const
char
* path,
int
timestamp);
56
57
void
plugin_set_enabled
(
PluginHandle
*
plugin
,
bool_t
enabled
);
58
void
*
plugin_get_misc_data
(
PluginHandle
*
plugin
,
int
size);
59
60
PluginHandle
*
transport_plugin_for_scheme
(
const
char
* scheme);
61
PluginHandle
*
playlist_plugin_for_extension
(
const
char
* extension);
62
void
input_plugin_for_key
(
int
key,
const
char
* value,
PluginForEachFunc
63
func
,
void
* data);
64
bool_t
input_plugin_has_images
(
PluginHandle
*
plugin
);
65
bool_t
input_plugin_has_subtunes
(
PluginHandle
*
plugin
);
66
bool_t
input_plugin_can_write_tuple
(
PluginHandle
*
plugin
);
67
bool_t
input_plugin_has_infowin
(
PluginHandle
*
plugin
);
68
69
/* pluginenum.c */
70
void
plugin_system_init
(
void
);
71
void
plugin_system_cleanup
(
void
);
72
Plugin *
plugin_load
(
const
char
* path);
73
74
#else
75
76
#include <
audacious/api-define-begin.h
>
77
#include <
audacious/plugins-api.h
>
78
#include <
audacious/api-define-end.h
>
79
80
#include <
audacious/api-alias-begin.h
>
81
#include <
audacious/plugins-api.h
>
82
#include <
audacious/api-alias-end.h
>
83
84
#endif
85
86
#undef AUD_API_NAME
87
#undef AUD_API_SYMBOL
88
89
#endif
90
91
#ifdef AUD_API_DECLARE
92
93
#define AUD_API_NAME PluginsAPI
94
#define AUD_API_SYMBOL plugins_api
95
96
#include "
api-define-begin.h
"
97
#include "
plugins-api.h
"
98
#include "
api-define-end.h
"
99
100
#include "
api-declare-begin.h
"
101
#include "
plugins-api.h
"
102
#include "
api-declare-end.h
"
103
104
#undef AUD_API_NAME
105
#undef AUD_API_SYMBOL
106
107
#endif
Generated by
1.8.3.1