Пример #1
0
Файл: timer.c Проект: nhst/trema
/**
 * Wrapper around the delete_timer_callback function.
 * event list.
 * @param callback Pointer to callback function 
 * @return bool True if timer event is successfully deleted, else False
 */
bool
delete_periodic_event_callback( void ( *callback )( void *user_data ) ) {
  assert( callback != NULL );

  debug( "Deleting a periodic event callback ( callback = %p ).", callback );

  return delete_timer_event_callback( callback );
}
Пример #2
0
static void
switch_unset_timeout( void ( *callback )( void *user_data ) ) {
  delete_timer_event_callback( callback );
}
Пример #3
0
static void
unset_interval_timer( void ) {
  delete_timer_event_callback( interval_timer_event );
  debug( "unset interval timer" );
}