Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
plugins-api.h
Go to the documentation of this file.
1 /*
2  * plugins-api.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 /* Do not include this file directly; use misc.h instead. */
21 
22 /* CAUTION: These functions are not thread safe. */
23 
24 /* plugin-init.c */
26 AUD_FUNC2 (bool_t, plugin_enable, PluginHandle *, plugin, bool_t, enable)
27 AUD_FUNC1 (PluginHandle *, plugin_by_widget, void /* GtkWidget */ *, widget)
28 AUD_FUNC4 (int, plugin_send_message, PluginHandle *, plugin,
29  const char *, code, const void *, data, int, size)
30 
31 /* plugin-registry.c */
32 AUD_FUNC1 (int, plugin_get_type, PluginHandle *, plugin)
33 AUD_FUNC1 (const char *, plugin_get_filename, PluginHandle *, plugin)
34 AUD_FUNC1 (PluginHandle *, plugin_lookup, const char *, filename)
35 AUD_FUNC1 (PluginHandle *, plugin_lookup_basename, const char *, basename)
36 
37 AUD_FUNC1 (const void *, plugin_get_header, PluginHandle *, plugin)
38 AUD_FUNC1 (PluginHandle *, plugin_by_header, const void *, header)
39 
40 AUD_FUNC2 (int, plugin_compare, PluginHandle *, a, PluginHandle *, b)
42  data)
43 
44 AUD_FUNC1 (bool_t, plugin_get_enabled, PluginHandle *, plugin)
45 AUD_VFUNC3 (plugin_for_enabled, int, type, PluginForEachFunc, func,
46  void *, data)
47 
48 AUD_FUNC1 (const char *, plugin_get_name, PluginHandle *, plugin)
49 AUD_FUNC1 (bool_t, plugin_has_about, PluginHandle *, plugin)
50 AUD_FUNC1 (bool_t, plugin_has_configure, PluginHandle *, plugin)
51 AUD_VFUNC1 (plugin_do_about, PluginHandle *, plugin)
52 AUD_VFUNC1 (plugin_do_configure, PluginHandle *, plugin)
53 
54 AUD_VFUNC3 (plugin_add_watch, PluginHandle *, plugin, PluginForEachFunc,
55  func, void *, data)
56 AUD_VFUNC3 (plugin_remove_watch, PluginHandle *, plugin, PluginForEachFunc,
57  func, void *, data)