trick/trick_source/sim_services/EchoJobs/EchoJobs_c_intf.cpp
jmpenn fccf32093b
Explicitly specify void arg for C functions that take no arguments. (#670)
* Clock empty args to void

* command_line func empty args to void

* DataRecord func empty args to void

* debug_pause func empty args to void

* echojobs func empty args to void

* ExternalApplication func empty args to void

* FrameLog func empty args to void

* MasterSlave func empty args to void

* MonteCarlo func empty args to void

* outdllist func proto empty args to void

* sie func empty args to void

* SimTime func empty args to void

* UnitTest func empty args to void

* var_server func empty args to void

* wcs func empty args to void
2018-09-19 11:25:04 -05:00

34 lines
868 B
C++

#include <stdio.h>
#include "trick/EchoJobs.hh"
/* 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(void) {
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(void) {
if (the_ej != NULL) {
return the_ej->echojobs_off() ;
}
return(0) ;
}