Mercurial > audlegacy
comparison src/audlegacy/hook.c @ 4848:b2ee645f3e59
Hook up the equalizer (bug #24)
author | John Lindgren <john.lindgren@tds.net> |
---|---|
date | Sun, 12 Apr 2009 23:03:39 -0400 |
parents | 7bf7f83a217e |
children | c97b4291ec8b |
comparison
equal
deleted
inserted
replaced
4847:d13bf8d71b99 | 4848:b2ee645f3e59 |
---|---|
15 * | 15 * |
16 * The Audacious team does not consider modular code linking to | 16 * The Audacious team does not consider modular code linking to |
17 * Audacious or using our public API to be a derived work. | 17 * Audacious or using our public API to be a derived work. |
18 */ | 18 */ |
19 | 19 |
20 #include <stdio.h> | |
20 #include <glib.h> | 21 #include <glib.h> |
21 #include "hook.h" | 22 #include "hook.h" |
22 | 23 |
23 static GSList *hook_list; | 24 static GSList *hook_list; |
24 | 25 |
120 | 121 |
121 g_return_if_fail(name != NULL); | 122 g_return_if_fail(name != NULL); |
122 | 123 |
123 hook = hook_find(name); | 124 hook = hook_find(name); |
124 | 125 |
125 if (hook == NULL) | 126 if (hook == NULL) { |
127 printf ("Warning: no hook found for \"%s\"\n", name); | |
126 return; | 128 return; |
129 } | |
127 | 130 |
128 for (iter = hook->items; iter != NULL; iter = g_slist_next(iter)) | 131 for (iter = hook->items; iter != NULL; iter = g_slist_next(iter)) |
129 { | 132 { |
130 HookItem *hookitem = (HookItem*)iter->data; | 133 HookItem *hookitem = (HookItem*)iter->data; |
131 | 134 |