comparison src/skins/ui_playlist_evlisteners.c @ 2633:8e4af29f7e17

dissociate hooks at plugin cleanup
author Tomasz Mon <desowin@gmail.com>
date Thu, 22 May 2008 20:26:00 +0200
parents 2d6e08c81c09
children 1ffcad5f406c
comparison
equal deleted inserted replaced
2632:55bc7318ff40 2633:8e4af29f7e17
53 void ui_playlist_evlistener_init(void) 53 void ui_playlist_evlistener_init(void)
54 { 54 {
55 aud_hook_associate("playlist update", ui_playlist_evlistener_playlist_update, NULL); 55 aud_hook_associate("playlist update", ui_playlist_evlistener_playlist_update, NULL);
56 aud_hook_associate("playlistwin show", ui_playlist_evlistener_playlistwin_show, NULL); 56 aud_hook_associate("playlistwin show", ui_playlist_evlistener_playlistwin_show, NULL);
57 } 57 }
58
59 void ui_playlist_evlistener_dissociate(void)
60 {
61 aud_hook_dissociate("playlist update", ui_playlist_evlistener_playlist_update);
62 aud_hook_dissociate("playlistwin show", ui_playlist_evlistener_playlistwin_show);
63 }
64