Skip to content

Commit 57a3911

Browse files
committed
Add missing extern "C" sections to the event headers.
#5
1 parent 70bef68 commit 57a3911

24 files changed

+216
-0
lines changed

src/framework/events/vscp_evt_alarm.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ This file is automatically generated. Don't change it manually.
4949
#include <stdint.h>
5050
#include "..\user\vscp_platform.h"
5151

52+
#ifdef __cplusplus
53+
extern "C"
54+
{
55+
#endif
56+
5257
/*******************************************************************************
5358
COMPILER SWITCHES
5459
*******************************************************************************/
@@ -225,4 +230,8 @@ extern BOOL vscp_evt_alarm_sendWatchdog(uint8_t index, uint8_t zone, uint8_t sub
225230
*/
226231
extern BOOL vscp_evt_alarm_sendAlarmReset(uint8_t alarmRegister, uint8_t zone, uint8_t subZone);
227232

233+
#ifdef __cplusplus
234+
}
235+
#endif
236+
228237
#endif /* __VSCP_EVT_ALARM_H__ */

src/framework/events/vscp_evt_aol.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ This file is automatically generated. Don't change it manually.
4949
#include <stdint.h>
5050
#include "..\user\vscp_platform.h"
5151

52+
#ifdef __cplusplus
53+
extern "C"
54+
{
55+
#endif
56+
5257
/*******************************************************************************
5358
COMPILER SWITCHES
5459
*******************************************************************************/
@@ -256,4 +261,8 @@ extern BOOL vscp_evt_aol_sendUpdateBiosImage(uint8_t index, uint8_t zone, uint8_
256261
*/
257262
extern BOOL vscp_evt_aol_sendUpdatePerformOtherDiagnosticProcedures(uint8_t index, uint8_t zone, uint8_t subZone);
258263

264+
#ifdef __cplusplus
265+
}
266+
#endif
267+
259268
#endif /* __VSCP_EVT_AOL_H__ */

src/framework/events/vscp_evt_configuration.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ This file is automatically generated. Don't change it manually.
4848
#include <stdint.h>
4949
#include "..\user\vscp_platform.h"
5050

51+
#ifdef __cplusplus
52+
extern "C"
53+
{
54+
#endif
55+
5156
/*******************************************************************************
5257
COMPILER SWITCHES
5358
*******************************************************************************/
@@ -279,4 +284,8 @@ extern BOOL vscp_evt_configuration_sendSetParameterAcknowledge(uint16_t paramete
279284
*/
280285
extern BOOL vscp_evt_configuration_sendSetParamterNegativeAcknowledge(uint16_t parameterid, uint16_t parametervalue);
281286

287+
#ifdef __cplusplus
288+
}
289+
#endif
290+
282291
#endif /* __VSCP_EVT_CONFIGURATION_H__ */

src/framework/events/vscp_evt_control.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ This file is automatically generated. Don't change it manually.
5252
#include <stdint.h>
5353
#include "..\user\vscp_platform.h"
5454

55+
#ifdef __cplusplus
56+
extern "C"
57+
{
58+
#endif
59+
5560
/*******************************************************************************
5661
COMPILER SWITCHES
5762
*******************************************************************************/
@@ -685,4 +690,8 @@ extern BOOL vscp_evt_control_sendIncrement(uint8_t userSpecific, uint8_t zone, u
685690
*/
686691
extern BOOL vscp_evt_control_sendDecrement(uint8_t userSpecific, uint8_t zone, uint8_t subzone, uint8_t const * const decrementValue, uint8_t decrementValueSize);
687692

693+
#ifdef __cplusplus
694+
}
695+
#endif
696+
688697
#endif /* __VSCP_EVT_CONTROL_H__ */

src/framework/events/vscp_evt_data.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ This file is automatically generated. Don't change it manually.
4949
#include <stdint.h>
5050
#include "..\user\vscp_platform.h"
5151

52+
#ifdef __cplusplus
53+
extern "C"
54+
{
55+
#endif
56+
5257
/*******************************************************************************
5358
COMPILER SWITCHES
5459
*******************************************************************************/
@@ -152,4 +157,8 @@ extern BOOL vscp_evt_data_sendSignalLevel(uint8_t index, uint8_t unit, int32_t d
152157
*/
153158
extern BOOL vscp_evt_data_sendSignalQuality(uint8_t index, uint8_t unit, int32_t data, int8_t exp);
154159

160+
#ifdef __cplusplus
161+
}
162+
#endif
163+
155164
#endif /* __VSCP_EVT_DATA_H__ */

src/framework/events/vscp_evt_diagnostic.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ This file is automatically generated. Don't change it manually.
4848
#include <stdint.h>
4949
#include "..\user\vscp_platform.h"
5050

51+
#ifdef __cplusplus
52+
extern "C"
53+
{
54+
#endif
55+
5156
/*******************************************************************************
5257
COMPILER SWITCHES
5358
*******************************************************************************/
@@ -1213,4 +1218,8 @@ extern BOOL vscp_evt_diagnostic_sendChargingOn(uint8_t index, uint8_t zone, uint
12131218
*/
12141219
extern BOOL vscp_evt_diagnostic_sendChargingOff(uint8_t index, uint8_t zone, uint8_t subZone, uint8_t const * const user, uint8_t userSize);
12151220

1221+
#ifdef __cplusplus
1222+
}
1223+
#endif
1224+
12161225
#endif /* __VSCP_EVT_DIAGNOSTIC_H__ */

src/framework/events/vscp_evt_display.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ This file is automatically generated. Don't change it manually.
4848
#include <stdint.h>
4949
#include "..\user\vscp_platform.h"
5050

51+
#ifdef __cplusplus
52+
extern "C"
53+
{
54+
#endif
55+
5156
/*******************************************************************************
5257
COMPILER SWITCHES
5358
*******************************************************************************/
@@ -193,4 +198,8 @@ extern BOOL vscp_evt_display_sendSetLed(uint8_t index, uint8_t zone, uint8_t sub
193198
*/
194199
extern BOOL vscp_evt_display_sendSetRgbColor(uint8_t index, uint8_t zone, uint8_t subZone, uint8_t red, uint8_t green, uint8_t blue);
195200

201+
#ifdef __cplusplus
202+
}
203+
#endif
204+
196205
#endif /* __VSCP_EVT_DISPLAY_H__ */

src/framework/events/vscp_evt_error.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ This file is automatically generated. Don't change it manually.
4848
#include <stdint.h>
4949
#include "..\user\vscp_platform.h"
5050

51+
#ifdef __cplusplus
52+
extern "C"
53+
{
54+
#endif
55+
5156
/*******************************************************************************
5257
COMPILER SWITCHES
5358
*******************************************************************************/
@@ -604,4 +609,8 @@ extern BOOL vscp_evt_error_sendOperationStoppedOrAborted(uint8_t index, uint8_t
604609
*/
605610
extern BOOL vscp_evt_error_sendPointerWithInvalidValue(uint8_t index, uint8_t zone, uint8_t subZone, uint8_t const * const user, uint8_t userSize);
606611

612+
#ifdef __cplusplus
613+
}
614+
#endif
615+
607616
#endif /* __VSCP_EVT_ERROR_H__ */

src/framework/events/vscp_evt_gnss.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ This file is automatically generated. Don't change it manually.
5050
#include "..\user\vscp_platform.h"
5151
#include <math.h>
5252

53+
#ifdef __cplusplus
54+
extern "C"
55+
{
56+
#endif
57+
5358
/*******************************************************************************
5459
COMPILER SWITCHES
5560
*******************************************************************************/
@@ -100,4 +105,8 @@ extern BOOL vscp_evt_gnss_sendPosition(float_t latitude, float_t longitude);
100105
*/
101106
extern BOOL vscp_evt_gnss_sendSatellites(uint8_t count);
102107

108+
#ifdef __cplusplus
109+
}
110+
#endif
111+
103112
#endif /* __VSCP_EVT_GNSS_H__ */

src/framework/events/vscp_evt_information.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ This file is automatically generated. Don't change it manually.
5050
#include <stdint.h>
5151
#include "..\user\vscp_platform.h"
5252

53+
#ifdef __cplusplus
54+
extern "C"
55+
{
56+
#endif
57+
5358
/*******************************************************************************
5459
COMPILER SWITCHES
5560
*******************************************************************************/
@@ -1093,4 +1098,8 @@ extern BOOL vscp_evt_information_sendDecremented(uint8_t userSpecific, uint8_t z
10931098
*/
10941099
extern BOOL vscp_evt_information_sendProximityDetected(uint8_t userSpecific, uint8_t zone, uint8_t subzone, uint16_t const * const proximityLevel);
10951100

1101+
#ifdef __cplusplus
1102+
}
1103+
#endif
1104+
10961105
#endif /* __VSCP_EVT_INFORMATION_H__ */

0 commit comments

Comments
 (0)