Mercurial > audlegacy
view src/audacious/hook.h @ 2421:74ec16ef847b trunk
[svn] - fix accidental removal of xmms_show_message
author | nenolod |
---|---|
date | Sat, 27 Jan 2007 04:32:08 -0800 |
parents | 60f1bc20c19c |
children | b7f77224ea03 |
line wrap: on
line source
/* Audacious * Copyright (c) 2006-2007 William Pitcock * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; under version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __AUDACIOUS_HOOK_H__ #define __AUDACIOUS_HOOK_H__ typedef void (*HookFunction)(gpointer user_data); typedef struct { const gchar *name; GSList *funcs; } Hook; void hook_register(const gchar *name); void hook_associate(const gchar *name, HookFunction func); void hook_dissociate(const gchar *name, HookFunction func); void hook_call(const gchar *name, gpointer user_data); #endif