#include <glib.h>
#include <stdio.h>
#include <string.h>
#include <libaudcore/audstrings.h>
#include "debug.h"
#include "interface.h"
#include "misc.h"
#include "plugin.h"
#include "plugins.h"
#include "util.h"
Go to the source code of this file.
#define FILENAME "plugin-registry" |
Definition at line 42 of file plugin-registry.c.
Referenced by open_registry_file().
#define FORMAT 6 |
Definition at line 43 of file plugin-registry.c.
Referenced by plugin_registry_load(), and plugin_registry_save().
gboolean input_plugin_can_write_tuple | ( | PluginHandle * | plugin | ) |
Definition at line 783 of file plugin-registry.c.
Referenced by file_can_write_tuple().
void input_plugin_for_key | ( | gint | key, | |
const gchar * | value, | |||
PluginForEachFunc | func, | |||
void * | data | |||
) |
Definition at line 763 of file plugin-registry.c.
Referenced by probe_by_extension(), probe_by_mime(), and probe_by_scheme().
static gboolean input_plugin_for_key_cb | ( | PluginHandle * | plugin, | |
InputPluginForKeyState * | state | |||
) | [static] |
Definition at line 753 of file plugin-registry.c.
Referenced by input_plugin_for_key().
gboolean input_plugin_has_images | ( | PluginHandle * | plugin | ) |
Definition at line 771 of file plugin-registry.c.
Referenced by file_read_image().
gboolean input_plugin_has_infowin | ( | PluginHandle * | plugin | ) |
Definition at line 789 of file plugin-registry.c.
Referenced by custom_infowin().
gboolean input_plugin_has_subtunes | ( | PluginHandle * | plugin | ) |
Definition at line 777 of file plugin-registry.c.
Referenced by add_file().
static void input_plugin_parse | ( | PluginHandle * | plugin, | |
FILE * | handle | |||
) | [static] |
Definition at line 293 of file plugin-registry.c.
Referenced by plugin_parse().
static void input_plugin_save | ( | PluginHandle * | plugin, | |
FILE * | handle | |||
) | [static] |
Definition at line 192 of file plugin-registry.c.
Referenced by plugin_save().
static FILE* open_registry_file | ( | const gchar * | mode | ) | [static] |
Definition at line 172 of file plugin-registry.c.
Referenced by plugin_registry_load(), and plugin_registry_save().
Definition at line 261 of file plugin-registry.c.
Referenced by input_plugin_parse(), plugin_parse(), and plugin_registry_load().
static void parse_next | ( | FILE * | handle | ) | [static] |
Definition at line 242 of file plugin-registry.c.
Referenced by input_plugin_parse(), playlist_plugin_parse(), plugin_parse(), plugin_registry_load(), and transport_plugin_parse().
static gchar* parse_string | ( | const gchar * | key | ) | [static] |
Definition at line 267 of file plugin-registry.c.
Referenced by input_plugin_parse(), playlist_plugin_parse(), plugin_parse(), and transport_plugin_parse().
static gboolean playlist_plugin_for_ext_cb | ( | PluginHandle * | plugin, | |
PlaylistPluginForExtState * | state | |||
) | [static] |
Definition at line 727 of file plugin-registry.c.
Referenced by playlist_plugin_for_extension().
PluginHandle* playlist_plugin_for_extension | ( | const gchar * | extension | ) |
Definition at line 738 of file plugin-registry.c.
Referenced by filename_is_playlist(), and get_plugin().
static void playlist_plugin_parse | ( | PluginHandle * | plugin, | |
FILE * | handle | |||
) | [static] |
Definition at line 283 of file plugin-registry.c.
Referenced by plugin_parse().
static void playlist_plugin_save | ( | PluginHandle * | plugin, | |
FILE * | handle | |||
) | [static] |
Definition at line 186 of file plugin-registry.c.
Referenced by plugin_save().
void plugin_add_watch | ( | PluginHandle * | plugin, | |
PluginForEachFunc | func, | |||
void * | data | |||
) |
Definition at line 671 of file plugin-registry.c.
Referenced by button_update(), and fill_cb().
PluginHandle* plugin_by_header | ( | const void * | header | ) |
Definition at line 591 of file plugin-registry.c.
Referenced by output_plugin_get_current().
static gint plugin_by_header_cb | ( | PluginHandle * | plugin, | |
const void * | header | |||
) | [static] |
Definition at line 586 of file plugin-registry.c.
Referenced by plugin_by_header().
static void plugin_call_watches | ( | PluginHandle * | plugin | ) | [static] |
Definition at line 629 of file plugin-registry.c.
Referenced by plugin_set_enabled().
gint plugin_compare | ( | PluginHandle * | a, | |
PluginHandle * | b | |||
) |
Definition at line 396 of file plugin-registry.c.
Referenced by effect_compare(), and plugin_registry_prune().
void plugin_for_each | ( | gint | type, | |
PluginForEachFunc | func, | |||
void * | data | |||
) |
Definition at line 598 of file plugin-registry.c.
Referenced by iface_plugin_probe(), list_fill(), output_get_list(), output_plugin_probe(), and plugin_for_enabled().
void plugin_for_enabled | ( | gint | type, | |
PluginForEachFunc | func, | |||
void * | data | |||
) |
Definition at line 665 of file plugin-registry.c.
static gboolean plugin_for_enabled_cb | ( | PluginHandle * | plugin, | |
PluginForEnabledState * | state | |||
) | [static] |
Definition at line 657 of file plugin-registry.c.
Referenced by plugin_for_enabled().
static void plugin_free | ( | PluginHandle * | plugin | ) | [static] |
Definition at line 141 of file plugin-registry.c.
Referenced by plugin_prune(), and plugin_registry_save().
gboolean plugin_get_enabled | ( | PluginHandle * | plugin | ) |
Definition at line 624 of file plugin-registry.c.
Referenced by about_watcher(), config_watcher(), fill_cb(), get_selected_header(), list_watcher(), and plugin_enable().
const gchar* plugin_get_filename | ( | PluginHandle * | plugin | ) |
Definition at line 567 of file plugin-registry.c.
Referenced by fill_cb().
const void* plugin_get_header | ( | PluginHandle * | plugin | ) |
Definition at line 572 of file plugin-registry.c.
Referenced by custom_infowin(), effect_plugin_start(), effect_plugin_stop(), effect_start_cb(), file_read_image(), file_read_tuple(), file_write_tuple(), general_load(), general_plugin_start(), general_plugin_stop(), get_plugin(), get_selected_header(), interface_load(), lookup_transport(), output_do_about(), output_do_config(), output_plugin_set_current(), playback_thread(), probe_cb(), probe_func(), vis_load(), vis_plugin_start(), and vis_plugin_stop().
const gchar* plugin_get_name | ( | PluginHandle * | plugin | ) |
Definition at line 609 of file plugin-registry.c.
Referenced by effect_enable(), effect_insert(), effect_remove(), effect_start_cb(), enable_multi(), enable_single(), fill_cb(), general_load(), general_unload(), iface_plugin_set_current(), interface_add_plugin_widget(), output_combo_fill(), plugin_enable(), probe_func(), probe_func_fast(), start_multi_cb(), start_single(), stop_multi_cb(), stop_plugins(), vis_load(), and vis_unload().
gint plugin_get_type | ( | PluginHandle * | plugin | ) |
Definition at line 562 of file plugin-registry.c.
Referenced by plugin_enable().
gboolean plugin_has_about | ( | PluginHandle * | plugin | ) |
Definition at line 614 of file plugin-registry.c.
Referenced by about_watcher(), and output_combo_update().
gboolean plugin_has_configure | ( | PluginHandle * | plugin | ) |
Definition at line 619 of file plugin-registry.c.
Referenced by config_watcher(), and output_combo_update().
PluginHandle* plugin_lookup | ( | const gchar * | path | ) |
Definition at line 426 of file plugin-registry.c.
Referenced by plugin_register(), and plugin_register_loaded().
static gint plugin_lookup_cb | ( | PluginHandle * | plugin, | |
const gchar * | path | |||
) | [static] |
Definition at line 421 of file plugin-registry.c.
Referenced by plugin_lookup().
static PluginHandle* plugin_new | ( | gchar * | path, | |
gboolean | confirmed, | |||
gboolean | loaded, | |||
gint | timestamp, | |||
gint | type, | |||
Plugin * | header | |||
) | [static] |
Definition at line 99 of file plugin-registry.c.
Referenced by plugin_parse(), and plugin_register_loaded().
static gboolean plugin_parse | ( | FILE * | handle | ) | [static] |
Definition at line 316 of file plugin-registry.c.
Referenced by plugin_registry_load().
static void plugin_prune | ( | PluginHandle * | plugin | ) | [static] |
Definition at line 387 of file plugin-registry.c.
Referenced by plugin_registry_prune().
void plugin_register | ( | const gchar * | path | ) |
Definition at line 433 of file plugin-registry.c.
Referenced by scan_plugin_func().
void plugin_register_loaded | ( | const gchar * | path, | |
Plugin * | header | |||
) |
Definition at line 457 of file plugin-registry.c.
Referenced by plugin2_process().
void plugin_registry_load | ( | void | ) |
Definition at line 364 of file plugin-registry.c.
Referenced by plugin_system_init().
void plugin_registry_prune | ( | void | ) |
Definition at line 414 of file plugin-registry.c.
Referenced by plugin_system_init().
void plugin_registry_save | ( | void | ) |
Definition at line 225 of file plugin-registry.c.
Referenced by plugin_system_cleanup().
void plugin_remove_watch | ( | PluginHandle * | plugin, | |
PluginForEachFunc | func, | |||
void * | data | |||
) |
Definition at line 680 of file plugin-registry.c.
static void plugin_save | ( | PluginHandle * | plugin, | |
FILE * | handle | |||
) | [static] |
Definition at line 207 of file plugin-registry.c.
Referenced by plugin_registry_save().
void plugin_set_enabled | ( | PluginHandle * | plugin, | |
gboolean | enabled | |||
) |
Definition at line 646 of file plugin-registry.c.
Referenced by enable_multi(), enable_single(), start_multi_cb(), and start_single().
PluginHandle* transport_plugin_for_scheme | ( | const gchar * | scheme | ) |
Definition at line 714 of file plugin-registry.c.
Referenced by lookup_transport().
static gboolean transport_plugin_for_scheme_cb | ( | PluginHandle * | plugin, | |
TransportPluginForSchemeState * | state | |||
) | [static] |
Definition at line 703 of file plugin-registry.c.
Referenced by transport_plugin_for_scheme().
static void transport_plugin_parse | ( | PluginHandle * | plugin, | |
FILE * | handle | |||
) | [static] |
Definition at line 273 of file plugin-registry.c.
Referenced by plugin_parse().
static void transport_plugin_save | ( | PluginHandle * | plugin, | |
FILE * | handle | |||
) | [static] |
Definition at line 180 of file plugin-registry.c.
Referenced by plugin_save().
const gchar* input_key_names[] [static] |
{ [INPUT_KEY_SCHEME] = "scheme", [INPUT_KEY_EXTENSION] = "ext", [INPUT_KEY_MIME] = "mime"}
Definition at line 90 of file plugin-registry.c.
Referenced by input_plugin_parse(), and input_plugin_save().
GStaticMutex mutex = G_STATIC_MUTEX_INIT [static] |
Definition at line 97 of file plugin-registry.c.
Referenced by plugin_get_header().
gchar parse_key[512] [static] |
Definition at line 239 of file plugin-registry.c.
Referenced by parse_integer(), parse_next(), and parse_string().
gchar* parse_value [static] |
Definition at line 240 of file plugin-registry.c.
Referenced by parse_integer(), parse_next(), and parse_string().
GList* plugin_list = NULL [static] |
Definition at line 95 of file plugin-registry.c.
Referenced by plugin_by_header(), plugin_for_each(), plugin_free(), plugin_lookup(), plugin_new(), plugin_registry_prune(), and plugin_registry_save().
const gchar* plugin_type_names[] [static] |
{ [PLUGIN_TYPE_TRANSPORT] = "transport", [PLUGIN_TYPE_PLAYLIST] = "playlist", [PLUGIN_TYPE_INPUT] = "input", [PLUGIN_TYPE_EFFECT] = "effect", [PLUGIN_TYPE_OUTPUT] = "output", [PLUGIN_TYPE_VIS] = "vis", [PLUGIN_TYPE_GENERAL] = "general", [PLUGIN_TYPE_IFACE] = "iface"}
Definition at line 80 of file plugin-registry.c.
Referenced by plugin_parse(), and plugin_save().
gboolean registry_locked = TRUE [static] |
Definition at line 96 of file plugin-registry.c.
Referenced by plugin_register_loaded(), plugin_registry_load(), plugin_registry_prune(), and plugin_registry_save().