Mercurial > audlegacy
annotate src/audacious/eventqueue.h @ 4787:f04094af8d57
remove XMMS-style fileopener
author | mf0102 <0102@gmx.at> |
---|---|
date | Tue, 30 Sep 2008 17:58:41 +0200 |
parents | cf6711eeb12f |
children |
rev | line source |
---|---|
3149
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
1 /* |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
2 * Audacious |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
3 * Copyright (c) 2006-2007 Audacious development team. |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
4 * |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
5 * This program is free software; you can redistribute it and/or modify |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
6 * it under the terms of the GNU General Public License as published by |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
7 * the Free Software Foundation; under version 3 of the License. |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
8 * |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
9 * This program is distributed in the hope that it will be useful, |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
12 * GNU General Public License for more details. |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
13 * |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
14 * You should have received a copy of the GNU General Public License |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
15 * along with this program. If not, see <http://www.gnu.org/licenses>. |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
16 * |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
17 * The Audacious team does not consider modular code linking to |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
18 * Audacious or using our public API to be a derived work. |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
19 */ |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
20 |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
21 #include <glib.h> |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
22 |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
23 #include "audacious/hook.h" |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
24 |
4557
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
3720
diff
changeset
|
25 #ifndef AUDACIOUS_EVENTQUEUE_H |
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
3720
diff
changeset
|
26 #define AUDACIOUS_EVENTQUEUE_H |
3149
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
27 |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
28 typedef struct { |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
29 gchar *name; |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
30 gpointer *user_data; |
4581
cf6711eeb12f
implement event_queue_with_data_free()
Tomasz Mon <desowin@gmail.com>
parents:
4557
diff
changeset
|
31 gboolean free_data; |
3149
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
32 } HookCallQueue; |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
33 |
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
34 void event_queue(const gchar *name, gpointer user_data); |
3720
6f6982108001
Add a function to eventqueue API, event_queue_timed() which calls a hook at a postponed time.
William Pitcock <nenolod@atheme.org>
parents:
3149
diff
changeset
|
35 void event_queue_timed(gint time, const gchar *name, gpointer user_data); |
4581
cf6711eeb12f
implement event_queue_with_data_free()
Tomasz Mon <desowin@gmail.com>
parents:
4557
diff
changeset
|
36 void event_queue_with_data_free(const gchar *name, gpointer user_data); |
3149
84c44d369969
Add eventqueue interface.
William Pitcock <nenolod@atheme-project.org>
parents:
diff
changeset
|
37 |
4557
2eee464379dc
Clean up header multiple inclusion guards (e.g. #ifndef FOO_H/#define FOO_H)
Matti Hamalainen <ccr@tnsp.org>
parents:
3720
diff
changeset
|
38 #endif /* AUDACIOUS_EVENTQUEUE_H */ |