Audacious  $Id:Doxyfile42802007-03-2104:39:00Znenolod$
Classes | Functions | Variables
hook.c File Reference
#include <glib.h>
#include <pthread.h>
#include "config.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)
 
EXPORT void hook_associate (const char *name, HookFunction func, void *user)
 
EXPORT void hook_dissociate_full (const char *name, HookFunction func, void *user)
 
EXPORT void hook_call (const char *name, void *data)
 

Variables

static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
 
static GHashTable * hooks
 

Function Documentation

EXPORT void hook_associate ( const char *  name,
HookFunction  func,
void *  user 
)
EXPORT void hook_call ( const char *  name,
void *  data 
)
EXPORT void hook_dissociate_full ( const char *  name,
HookFunction  func,
void *  user 
)

Definition at line 67 of file hook.c.

static void str_unref_cb ( void *  str)
static

Definition at line 38 of file hook.c.

Referenced by hook_associate().

Variable Documentation

GHashTable* hooks
static

Definition at line 35 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 34 of file hook.c.

Referenced by hook_associate(), hook_call(), and hook_dissociate_full().