annotate src/audacious/hook.h @ 2448:ff135e2ba10e trunk

[svn] - mark some strings used by GOption as translatable
author nenolod
date Tue, 30 Jan 2007 14:21:06 -0800
parents 60f1bc20c19c
children b7f77224ea03
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2404
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
1 /* Audacious
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
2 * Copyright (c) 2006-2007 William Pitcock
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
3 *
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
6 * the Free Software Foundation; under version 2 of the License.
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
7 *
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
8 * This program is distributed in the hope that it will be useful,
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
11 * GNU General Public License for more details.
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
12 *
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
13 * You should have received a copy of the GNU General Public License
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
14 * along with this program; if not, write to the Free Software
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
16 */
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
17
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
18 #ifndef __AUDACIOUS_HOOK_H__
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
19 #define __AUDACIOUS_HOOK_H__
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
20
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
21 typedef void (*HookFunction)(gpointer user_data);
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
22
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
23 typedef struct {
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
24 const gchar *name;
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
25 GSList *funcs;
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
26 } Hook;
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
27
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
28 void hook_register(const gchar *name);
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
29 void hook_associate(const gchar *name, HookFunction func);
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
30 void hook_dissociate(const gchar *name, HookFunction func);
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
31 void hook_call(const gchar *name, gpointer user_data);
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
32
60f1bc20c19c [svn] - hooking implementation.
nenolod
parents:
diff changeset
33 #endif