X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.fmil.core%2Fnative%2FFMUSimulator%2Finclude%2Fsim_support.h;h=53359aae6557f7ad57fa7745126d6b79fa2d0be7;hb=a19f5279b32973dfc28ae084a8b7d20ae6aaac97;hp=a2a5180a5cfdd5c13cf0d7ad1637498f32ef556e;hpb=411f77604de585b8b00e76ce39dab96e530193e5;p=simantics%2Ffmil.git diff --git a/org.simantics.fmil.core/native/FMUSimulator/include/sim_support.h b/org.simantics.fmil.core/native/FMUSimulator/include/sim_support.h index a2a5180..53359aa 100644 --- a/org.simantics.fmil.core/native/FMUSimulator/include/sim_support.h +++ b/org.simantics.fmil.core/native/FMUSimulator/include/sim_support.h @@ -22,10 +22,19 @@ #define SEVEN_ZIP_OUT_OF_MEMORY 8 #define SEVEN_ZIP_STOPPED_BY_USER 255 +#ifdef __cplusplus +extern "C" { +#endif + void fmuLogger(fmiComponent c, fmiString instanceName, fmiStatus status, fmiString category, fmiString message, ...); int unzip(const char *zipPath, const char *outPath); void parseArguments(int argc, char *argv[], char** fmuFileName, double* tEnd, double* h, int* loggingOn, char* csv_separator); int loadFMU(FMU *fmu, const char* fmuFileName, const char* tmpPath); -void outputRow(FMU *fmu, fmiComponent c, double time, FILE* file, char separator, boolean header); +void outputRow(FMU *fmu, fmiComponent c, double time, FILE* file, char separator, unsigned char header); int error(const char* message); void printHelp(const char* fmusim); + +#ifdef __cplusplus +} /* extern "C" */ +#endif /* __cplusplus */ +