mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 02:55:12 +00:00
xmms check_dlerror()
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@498 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
3dc1345eee
commit
027f964228
54
src/xmms.c
54
src/xmms.c
@ -169,7 +169,7 @@ int destroy_xmms_thread(void)
|
|||||||
#if defined(XMMS) || defined(BMP) || defined(AUDACIOUS)
|
#if defined(XMMS) || defined(BMP) || defined(AUDACIOUS)
|
||||||
void check_dlerror(void)
|
void check_dlerror(void)
|
||||||
{
|
{
|
||||||
const char *error;
|
static const char *error;
|
||||||
|
|
||||||
if ((error = dlerror()) != NULL) {
|
if ((error = dlerror()) != NULL) {
|
||||||
ERR("error grabbing function symbol");
|
ERR("error grabbing function symbol");
|
||||||
@ -243,50 +243,30 @@ void *xmms_thread_func_dynamic(void *pvoid)
|
|||||||
check_dlerror();
|
check_dlerror();
|
||||||
|
|
||||||
xmms_remote_is_paused = dlsym(handle, "xmms_remote_is_paused");
|
xmms_remote_is_paused = dlsym(handle, "xmms_remote_is_paused");
|
||||||
if ((error = dlerror()) != NULL) {
|
check_dlerror();
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
xmms_remote_is_playing = dlsym(handle, "xmms_remote_is_playing");
|
xmms_remote_is_playing = dlsym(handle, "xmms_remote_is_playing");
|
||||||
if ((error = dlerror()) != NULL) {
|
check_dlerror();
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
xmms_remote_get_playlist_pos = dlsym(handle, "xmms_remote_get_playlist_pos");
|
xmms_remote_get_playlist_pos = dlsym(handle, "xmms_remote_get_playlist_pos");
|
||||||
if ((error = dlerror()) != NULL) {
|
check_dlerror();
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
xmms_remote_get_playlist_title = dlsym(handle, "xmms_remote_get_playlist_title");
|
xmms_remote_get_playlist_title = dlsym(handle, "xmms_remote_get_playlist_title");
|
||||||
if ((error = dlerror()) != NULL) {
|
check_dlerror();
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
xmms_remote_get_playlist_time = dlsym(handle, "xmms_remote_get_playlist_time");
|
xmms_remote_get_playlist_time = dlsym(handle, "xmms_remote_get_playlist_time");
|
||||||
if ((error = dlerror()) != NULL) {
|
check_dlerror();
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
xmms_remote_get_output_time = dlsym(handle, "xmms_remote_get_output_time");
|
xmms_remote_get_output_time = dlsym(handle, "xmms_remote_get_output_time");
|
||||||
if ((error = dlerror()) != NULL) {
|
check_dlerror();
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
xmms_remote_get_info = dlsym(handle, "xmms_remote_get_info");
|
xmms_remote_get_info = dlsym(handle, "xmms_remote_get_info");
|
||||||
if ((error = dlerror()) != NULL) {
|
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
xmms_remote_get_playlist_file = dlsym(handle, "xmms_remote_get_playlist_file");
|
xmms_remote_get_playlist_file = dlsym(handle, "xmms_remote_get_playlist_file");
|
||||||
if ((error = dlerror()) != NULL) {
|
check_dlerror();
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
xmms_remote_get_playlist_length = dlsym(handle, "xmms_remote_get_playlist_length");
|
xmms_remote_get_playlist_length = dlsym(handle, "xmms_remote_get_playlist_length");
|
||||||
if ((error = dlerror()) != NULL) {
|
check_dlerror();
|
||||||
ERR("error grabbing function symbol");
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Grab the runnable signal. Should be non-zero here or we do nothing. */
|
/* Grab the runnable signal. Should be non-zero here or we do nothing. */
|
||||||
pthread_mutex_lock(&info.xmms.runnable_mutex);
|
pthread_mutex_lock(&info.xmms.runnable_mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user