mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 21:53:10 +00:00
fccf32093b
* 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
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#include <stdio.h>
|
|
#include "trick/FrameLog.hh"
|
|
|
|
/* Global singleton pointer to the framelog class */
|
|
extern Trick::FrameLog * the_fl ;
|
|
|
|
/*************************************************************************/
|
|
/* These routines are the "C" interface to framelog instrumentation */
|
|
/*************************************************************************/
|
|
|
|
/**
|
|
* @relates Trick::FrameLog
|
|
* @copydoc Trick::FrameLog::framelog_on
|
|
* C wrapper for Trick::FrameLog::framelog_on
|
|
*/
|
|
extern "C" int frame_log_on(void) {
|
|
if (the_fl != NULL) {
|
|
return the_fl->framelog_on() ;
|
|
}
|
|
return(0) ;
|
|
}
|
|
|
|
/**
|
|
* @relates Trick::FrameLog
|
|
* @copydoc Trick::FrameLog::framelog_off
|
|
* C wrapper for Trick::FrameLog::framelog_off
|
|
*/
|
|
extern "C" int frame_log_off(void) {
|
|
if (the_fl != NULL) {
|
|
return the_fl->framelog_off() ;
|
|
}
|
|
return(0) ;
|
|
}
|
|
|
|
/**
|
|
* @relates Trick::FrameLog
|
|
* @copydoc Trick::FrameLog::set_max_samples
|
|
* C wrapper for Trick::FrameLog::set_max_samples
|
|
*/
|
|
extern "C" int frame_log_set_max_samples(int num) {
|
|
if (the_fl != NULL) {
|
|
return the_fl->set_max_samples(num) ;
|
|
}
|
|
return(0) ;
|
|
}
|