Mercurial > audlegacy-plugins
diff src/scrobbler/plugin.c @ 2060:0803fba87da8
hook shit
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 14 Oct 2007 03:14:20 -0500 |
parents | cf4fa45ffd80 |
children | f235b4a365a6 |
line wrap: on
line diff
--- a/src/scrobbler/plugin.c Sat Oct 13 23:48:00 2007 -0500 +++ b/src/scrobbler/plugin.c Sun Oct 14 03:14:20 2007 -0500 @@ -68,9 +68,9 @@ return aud_str_has_prefix_nocase(a, "http://") || aud_str_has_prefix_nocase(a, "https://"); } -static void hook_playback_begin(gpointer hook_data, gpointer user_data) +static void aud_hook_playback_begin(gpointer aud_hook_data, gpointer user_data) { - PlaylistEntry *entry = (PlaylistEntry *) hook_data; + PlaylistEntry *entry = (PlaylistEntry *) aud_hook_data; g_return_if_fail(entry != NULL); @@ -165,7 +165,7 @@ return; } - hook_associate("playback begin", hook_playback_begin, NULL); + aud_hook_associate("playback begin", aud_hook_playback_begin, NULL); pdebug("plugin started", DEBUG); } @@ -204,7 +204,7 @@ sc_cleaner(); gerpok_sc_cleaner(); - hook_dissociate("playback begin", hook_playback_begin); + aud_hook_dissociate("playback begin", aud_hook_playback_begin); } static void *xs_thread(void *data __attribute__((unused)))