/* Copyright 2013 The MathWorks, Inc. */ #ifndef __CODEINSTRSERVICE_H__ #define __CODEINSTRSERVICE_H__ /* Shipping C interface to the code Instrumentation service */ #ifndef EXTERN_C #ifdef __cplusplus /* support C++ call sites */ #define EXTERN_C extern "C" #else /* support C call sites */ #define EXTERN_C extern #endif #endif /* detect shipping call site */ #ifndef LIBMWCODERPROFILE_API /* default definition */ #define LIBMWCODERPROFILE_API #else #ifndef MATLAB_MEX_FILE #define MATLAB_MEX_FILE #endif #endif #include "tmwtypes.h" /* error codes */ static const int CODE_INSTR_SERVICE_SUCCESS = 0; static const int CODE_INSTR_SERVICE_ERROR = 1; /* C interface */ EXTERN_C LIBMWCODERPROFILE_API int codeInstrServiceCreate( void** const ppCodeInstrService, void* const pXILComms, void* const pDispatcher, const void* const pMemUnitXformer, const int idTypeSize, void* const pXILUtils, const int memUnitSize); EXTERN_C LIBMWCODERPROFILE_API void codeInstrServiceSetTime( void* const pCodeInstrService, const time_T simTime); EXTERN_C LIBMWCODERPROFILE_API void codeInstrServiceDestroy( void* const pCodeInstrService); #endif