Functions | Variables

hook.c File Reference

#include <stdio.h>
#include <string.h>
#include <glib.h>
#include "hook.h"

Go to the source code of this file.

Functions

void hook_init (void)
static Hookhook_find (const gchar *name)
void hook_register (const gchar *name)
gint hook_associate (const gchar *name, HookFunction func, gpointer user_data)
gint hook_dissociate (const gchar *name, HookFunction func)
gint hook_dissociate_full (const gchar *name, HookFunction func, gpointer user_data)
void hook_call (const gchar *name, gpointer hook_data)

Variables

static GThread * hook_thread
static GSList * hook_list

Function Documentation

gint hook_associate ( const gchar *  name,
HookFunction  func,
gpointer  user_data 
)
void hook_call ( const gchar *  name,
gpointer  hook_data 
)
gint hook_dissociate ( const gchar *  name,
HookFunction  func 
)

Definition at line 96 of file hook.c.

Referenced by playback_finalize(), and vis_cleanup().

gint hook_dissociate_full ( const gchar *  name,
HookFunction  func,
gpointer  user_data 
)

Definition at line 125 of file hook.c.

static Hook* hook_find ( const gchar *  name  )  [static]
void hook_init ( void   ) 

Definition at line 29 of file hook.c.

Referenced by main().

void hook_register ( const gchar *  name  ) 

Definition at line 51 of file hook.c.

Referenced by hook_associate().


Variable Documentation

GSList* hook_list [static]

Definition at line 27 of file hook.c.

Referenced by hook_find(), and hook_register().

GThread* hook_thread [static]

Definition at line 26 of file hook.c.

Referenced by hook_call(), and hook_init().