2015-02-26 09:02:31 -06:00
|
|
|
#include <stdio.h>
|
2015-06-01 10:28:29 -05:00
|
|
|
#include "trick/FrameLog.hh"
|
2015-02-26 09:02:31 -06:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
*/
|
2018-09-19 11:25:04 -05:00
|
|
|
extern "C" int frame_log_on(void) {
|
2015-02-26 09:02:31 -06:00
|
|
|
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
|
|
|
|
*/
|
2018-09-19 11:25:04 -05:00
|
|
|
extern "C" int frame_log_off(void) {
|
2015-02-26 09:02:31 -06:00
|
|
|
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) ;
|
|
|
|
}
|