Changeset 3473:9b37ab18c87d in roaraudio for libroarpulse


Ignore:
Timestamp:
02/14/10 02:54:19 (10 years ago)
Author:
phi
Branch:
default
Message:

a lot debug lions for the signal handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/mainloop-signal.c

    r3471 r3473  
    5858 
    5959static void _roar_pa_signal_handler (int sig) { 
    60  pa_signal_event * e = &(_roar_pa_signal.sig[sig]); 
     60 pa_signal_event * e; 
     61 
     62 ROAR_DBG("_roar_pa_signal_handler(sig=%s(%i)) = ?", strsignal(sig), sig); 
     63 
     64 if ( sig >= MAX_SIG ) 
     65  return; 
     66 
     67 e = &(_roar_pa_signal.sig[sig]); 
     68 
     69 if ( !e->used ) 
     70  return; 
     71 
     72 ROAR_DBG("_roar_pa_signal_handler(sig=%s(%i)): signal is used", strsignal(sig), sig); 
     73 
     74 ROAR_DBG("_roar_pa_signal_handler(sig=%s(%i)): callback at %p", strsignal(sig), sig, e->cb); 
     75 
     76 ROAR_DBG("_roar_pa_signal_handler(sig=%s(%i)): api=%p, userdata=%p", strsignal(sig), sig, _roar_pa_signal.api, e->userdata); 
    6177 
    6278 if ( e->cb != NULL ) 
    6379  e->cb(_roar_pa_signal.api, e, sig, e->userdata); 
     80 
     81 ROAR_DBG("_roar_pa_signal_handler(sig=%s(%i)) = (void)", strsignal(sig), sig); 
    6482} 
    6583 
Note: See TracChangeset for help on using the changeset viewer.