#include <glib.h>
#include <pthread.h>
#include <string.h>
#include "core.h"
#include "hook.h"
Go to the source code of this file.
Classes | |
struct | HookItem |
Functions | |
static void | str_unref_cb (void *str) |
void | hook_associate (const char *name, HookFunction func, void *user) |
void | hook_dissociate_full (const char *name, HookFunction func, void *user) |
void | hook_call (const char *name, void *data) |
Variables | |
static pthread_mutex_t | mutex = PTHREAD_MUTEX_INITIALIZER |
static GHashTable * | hooks |
void hook_associate | ( | const char * | name, | |
HookFunction | func, | |||
void * | user | |||
) |
Definition at line 41 of file hook.c.
Referenced by art_init(), eq_init(), history_load(), init_dbus(), load_playlists(), main(), mpris_signals_init(), and playback_start().
void hook_call | ( | const char * | name, | |
void * | data | |||
) |
Definition at line 92 of file hook.c.
Referenced by add_finish(), audacious_rc_toggle_aot(), complete_stop(), do_autosave(), drct_quit(), end_cb(), event_execute(), iface_plugin_set_current(), leading_zero_cb(), playback_pause(), playback_seek(), playback_set_volume(), playback_start(), playlist_next_song(), playlist_prev_song(), playlist_set_active(), playlist_set_playing(), playlist_set_position(), show_numbers_cb(), shut_down(), sw_volume_toggled(), and update().
void hook_dissociate_full | ( | const char * | name, | |
HookFunction | func, | |||
void * | user | |||
) |
static void str_unref_cb | ( | void * | str | ) | [static] |
Definition at line 36 of file hook.c.
Referenced by hook_associate().
GHashTable* hooks [static] |
Definition at line 33 of file hook.c.
Referenced by hook_associate(), hook_call(), and hook_dissociate_full().
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER [static] |
Definition at line 32 of file hook.c.
Referenced by hook_associate(), hook_call(), and hook_dissociate_full().