2015-02-26 15:02:31 +00:00
|
|
|
#include <stdio.h>
|
2015-06-01 15:28:29 +00:00
|
|
|
#include "trick/DebugPause.hh"
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
/* Global singleton pointer to the echo jobs class */
|
|
|
|
extern Trick::DebugPause * the_debug_pause ;
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* These routines are the "C" interface to echo jobs instrumentation */
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @relates Trick::DebugPause
|
|
|
|
* @copydoc Trick::DebugPause::debug_pause_on
|
|
|
|
* C wrapper for Trick::DebugPause::debug_pause_on
|
|
|
|
*/
|
2018-09-19 16:25:04 +00:00
|
|
|
extern "C" int debug_pause_on(void) {
|
2015-02-26 15:02:31 +00:00
|
|
|
if (the_debug_pause != NULL) {
|
|
|
|
return the_debug_pause->debug_pause_on() ;
|
|
|
|
}
|
|
|
|
return(0) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @relates Trick::DebugPause
|
|
|
|
* @copydoc Trick::DebugPause::debug_pause_off
|
|
|
|
* C wrapper for Trick::DebugPause::debug_pause_off
|
|
|
|
*/
|
2018-09-19 16:25:04 +00:00
|
|
|
extern "C" int debug_pause_off(void) {
|
2015-02-26 15:02:31 +00:00
|
|
|
if (the_debug_pause != NULL) {
|
|
|
|
return the_debug_pause->debug_pause_off() ;
|
|
|
|
}
|
|
|
|
return(0) ;
|
|
|
|
}
|
|
|
|
|
2018-09-19 16:25:04 +00:00
|
|
|
extern "C" int debug_signal(void) {
|
2015-02-26 15:02:31 +00:00
|
|
|
if (the_debug_pause != NULL) {
|
|
|
|
return the_debug_pause->debug_signal() ;
|
|
|
|
}
|
|
|
|
return(0) ;
|
|
|
|
}
|