hook.c File Reference

#include <glib.h>
#include <pthread.h>
#include <string.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 60 of file hook.c.

static void str_unref_cb ( void *  str  )  [static]

Definition at line 37 of file hook.c.

Referenced by hook_associate().


Variable Documentation

GHashTable* hooks [static]

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

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


Generated on 21 Aug 2012 for Audacious by  doxygen 1.6.1