diff options
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.c/src')
11 files changed, 84 insertions, 3 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etLogger.h b/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etLogger.h index 2c9c386bf..a4bb8c0c2 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etLogger.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etLogger.h @@ -17,6 +17,9 @@ * * \author: tschuetz */ +#ifdef __cplusplus +extern "C" { +#endif #ifndef _ETLOGGER_H_ #define _ETLOGGER_H_ @@ -93,3 +96,7 @@ void etLogger_logInfoF(const char* format, ... ); void etLogger_fprintf(etFileHandle file, const char* format, ... ); #endif /* _ETLOGGER_H_ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/etStdDatatypes.h b/runtime/org.eclipse.etrice.runtime.c/src/common/etStdDatatypes.h index 294068261..90f583d60 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/etStdDatatypes.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/etStdDatatypes.h @@ -13,6 +13,9 @@ /* * Generic version for most platforms based on std. */ +#ifdef __cplusplus +extern "C" { +#endif #ifndef _ETSTDDATATYPES_H_ #define _ETSTDDATATYPES_H_ @@ -30,7 +33,7 @@ /* --- Data types for room.basic.types */ -// bool already defined +/* bool already defined */ typedef uint8_t uint8; typedef uint16_t uint16; typedef uint32_t uint32; @@ -58,11 +61,11 @@ typedef char* charPtr; /*--- Cross language support (e.g. Java,C/C++) */ #define null NULL -// typedef x boolean +/* typedef x boolean */ /*-----------------------------------------------------------*/ -//--- Required types of runtime +/*--- Required types of runtime */ typedef bool etBool; #define ET_TRUE true #define ET_FALSE false @@ -115,3 +118,7 @@ typedef etInt16 etAddressId; /*-----------------------------------------------------------*/ #endif /* _ETSTDDATATYPES_H_ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/etUnit/etUnit.h b/runtime/org.eclipse.etrice.runtime.c/src/common/etUnit/etUnit.h index 99c5bb3e0..ff1902cac 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/etUnit/etUnit.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/etUnit/etUnit.h @@ -19,6 +19,9 @@ * * \author Thomas Schuetz */ +#ifdef __cplusplus +extern "C" { +#endif #ifndef _ETUNIT_H_ #define _ETUNIT_H_ @@ -387,4 +390,7 @@ void expectOrderEnd(etInt16 id, const char* msg, etInt16 identifier, const char* #endif /* _ETUNIT_H_ */ +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h index 27d0c1118..ec7ae3634 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etMutex.h @@ -18,6 +18,9 @@ * * \author Thomas Schuetz, Thomas Jung */ +#ifdef __cplusplus +extern "C" { +#endif #ifndef _ETMUTEX_H_ #define _ETMUTEX_H_ @@ -56,3 +59,7 @@ void etMutex_enter(etMutex* self); void etMutex_leave(etMutex* self); #endif /* _ETMUTEX_H_ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h index 6642f69a3..8c2fefb3b 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etSema.h @@ -9,6 +9,9 @@ * Thomas Schuetz (initial contribution) * *******************************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif #ifndef _ETSEMA_H_ #define _ETSEMA_H_ @@ -57,3 +60,7 @@ void etSema_waitForWakeup(etSema* self); #endif /* _ETSEMA_H_ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h index 310ecc76a..a50017b55 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTcpSockets.h @@ -17,6 +17,9 @@ * * \author Henrik Rentz-Reichert */ +#ifdef __cplusplus +extern "C" { +#endif #ifndef _ETTCPSOCKETS_H_ #define _ETTCPSOCKETS_H_ @@ -173,3 +176,7 @@ etSocketError etWriteSocket(etSocketConnectionData* self, int size, const int8* etSocketError etCloseSocket(etSocketConnectionData* self); #endif /* _ETTCPSOCKETS_H_ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etThread.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etThread.h index a176f9d6a..980ccc476 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etThread.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etThread.h @@ -18,6 +18,10 @@ * \author Thomas Schuetz, Thomas Jung * */ +#ifdef __cplusplus +extern "C" { +#endif + #ifndef _ETTHREAD_H_ #define _ETTHREAD_H_ @@ -97,3 +101,7 @@ etOSThreadId etThread_self_id(void); #endif /* _ETTHREAD_H_ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h index fa51d50ed..75dab0edd 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTime.h @@ -18,6 +18,10 @@ * \author Thomas Schuetz */ +#ifdef __cplusplus +extern "C" { +#endif + #ifndef _ETTIME_H_ #define _ETTIME_H_ @@ -43,3 +47,7 @@ typedef struct etTime { void getTimeFromTarget(etTime *t); #endif /* _ETTIME_H_ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTimer.h b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTimer.h index 827c2a025..da9bdd228 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTimer.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/osal/etTimer.h @@ -17,6 +17,10 @@ * * \author Thomas Jung */ +#ifdef __cplusplus +extern "C" { +#endif + #ifndef _ETTIMER_H_ #define _ETTIMER_H_ @@ -70,3 +74,7 @@ void etTimer_destruct(etTimer* self); #endif /* __ETTIMER_H__ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.h b/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.h index a2bc7901e..d5b23e25c 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.h @@ -10,6 +10,10 @@ * *******************************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif + #ifndef _ETRUNTIME_H_ #define _ETRUNTIME_H_ @@ -31,3 +35,7 @@ etSema* etRuntime_getTerminateSemaphore(); #endif /* _ETRUNTIME_H_ */ + +#ifdef __cplusplus +} +#endif diff --git a/runtime/org.eclipse.etrice.runtime.c/src/platforms/MT_WIN_MinGW/etDatatypes.h b/runtime/org.eclipse.etrice.runtime.c/src/platforms/MT_WIN_MinGW/etDatatypes.h index 8adfcda08..057d23a06 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/platforms/MT_WIN_MinGW/etDatatypes.h +++ b/runtime/org.eclipse.etrice.runtime.c/src/platforms/MT_WIN_MinGW/etDatatypes.h @@ -10,6 +10,10 @@ * *******************************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif + #ifndef _ETDATATYPES_H_ #define _ETDATATYPES_H_ @@ -50,3 +54,7 @@ typedef DWORD etOSTimerId; /*-----------------------------------------------------------*/ #endif /* _DATATYPES_H_ */ + +#ifdef __cplusplus +} +#endif |