2015-02-26 15:02:31 +00:00
|
|
|
#include <stdio.h>
|
2015-06-01 15:28:29 +00:00
|
|
|
#include "trick/EchoJobs.hh"
|
2015-02-26 15:02:31 +00:00
|
|
|
|
|
|
|
/* Global singleton pointer to the echo jobs class */
|
|
|
|
extern Trick::EchoJobs * the_ej ;
|
|
|
|
|
|
|
|
/*************************************************************************/
|
|
|
|
/* These routines are the "C" interface to echo jobs instrumentation */
|
|
|
|
/*************************************************************************/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @relates Trick::EchoJobs
|
|
|
|
* @copydoc Trick::EchoJobs::echojobs_on
|
|
|
|
* C wrapper for Trick::EchoJobs::echojobs_on
|
|
|
|
*/
|
|
|
|
extern "C" int echo_jobs_on() {
|
|
|
|
if (the_ej != NULL) {
|
|
|
|
return the_ej->echojobs_on() ;
|
|
|
|
}
|
|
|
|
return(0) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @relates Trick::EchoJobs
|
|
|
|
* @copydoc Trick::EchoJobs::echojobs_off
|
|
|
|
* C wrapper for Trick::EchoJobs::echojobs_off
|
|
|
|
*/
|
|
|
|
extern "C" int echo_jobs_off() {
|
|
|
|
if (the_ej != NULL) {
|
|
|
|
return the_ej->echojobs_off() ;
|
|
|
|
}
|
|
|
|
return(0) ;
|
|
|
|
}
|