- fixed examples that have control handlers with old signature

pull/244/head
Michael Zillgith 5 years ago
parent 20295a9577
commit 07aaf23238

@ -54,7 +54,7 @@ connectionIndicationHandler(IedServer server, ClientConnection connection, bool
} }
static CheckHandlerResult static CheckHandlerResult
performCheckHandler(void* parameter, MmsValue* ctlVal, bool test, bool interlockCheck, ClientConnection connection) performCheckHandler(ControlAction action, void* parameter, MmsValue* ctlVal, bool test, bool interlockCheck, ClientConnection connection)
{ {
if (controllingClient == NULL) { if (controllingClient == NULL) {
printf("Client takes control -> switch to remote control operation mode\n"); printf("Client takes control -> switch to remote control operation mode\n");
@ -101,7 +101,7 @@ updateLED3stVal(bool newLedState, uint64_t timeStamp) {
} }
static ControlHandlerResult static ControlHandlerResult
controlHandlerForBinaryOutput(void* parameter, MmsValue* value, bool test) controlHandlerForBinaryOutput(ControlAction action, void* parameter, MmsValue* value, bool test)
{ {
if (test) if (test)
return CONTROL_RESULT_OK; return CONTROL_RESULT_OK;
@ -151,7 +151,7 @@ static int ledOffTimeMs = 1000;
static int32_t opCnt = 0; static int32_t opCnt = 0;
static ControlHandlerResult static ControlHandlerResult
controlHandlerForInt32Controls(void* parameter, MmsValue* value, bool test) controlHandlerForInt32Controls(ControlAction action, void* parameter, MmsValue* value, bool test)
{ {
if (test) if (test)
return CONTROL_RESULT_OK; return CONTROL_RESULT_OK;

@ -43,7 +43,7 @@ void sigint_handler(int signalId)
bool bool
controlHandlerForIntegerOutput(void* parameter, MmsValue* value, bool test) controlHandlerForIntegerOutput(ControlAction action, void* parameter, MmsValue* value, bool test)
{ {
if (MmsValue_getType(value) != MMS_INTEGER) if (MmsValue_getType(value) != MMS_INTEGER)
return false; return false;

@ -28,7 +28,7 @@ sigint_handler(int signalId)
} }
static ControlHandlerResult static ControlHandlerResult
controlHandlerForBinaryOutput(void* parameter, MmsValue* value, bool test) controlHandlerForBinaryOutput(ControlAction action, void* parameter, MmsValue* value, bool test)
{ {
if (test) if (test)
return CONTROL_RESULT_FAILED; return CONTROL_RESULT_FAILED;

@ -26,7 +26,7 @@ void sigint_handler(int signalId)
} }
void void
controlHandlerForBinaryOutput(void* parameter, MmsValue* value) controlHandlerForBinaryOutput(ControlAction action, void* parameter, MmsValue* value)
{ {
uint64_t timestamp = Hal_getTimeInMs(); uint64_t timestamp = Hal_getTimeInMs();

@ -88,7 +88,7 @@ clientAuthenticator(void* parameter, AcseAuthenticationParameter authParameter,
} }
static CheckHandlerResult static CheckHandlerResult
performCheckHandler (void* parameter, MmsValue* ctlVal, bool test, bool interlockCheck, ClientConnection connection) performCheckHandler (ControlAction action, void* parameter, MmsValue* ctlVal, bool test, bool interlockCheck, ClientConnection connection)
{ {
void* securityToken = ClientConnection_getSecurityToken(connection); void* securityToken = ClientConnection_getSecurityToken(connection);
@ -99,7 +99,7 @@ performCheckHandler (void* parameter, MmsValue* ctlVal, bool test, bool interloc
} }
static void static void
controlHandlerForBinaryOutput(void* parameter, MmsValue* value, bool test) controlHandlerForBinaryOutput(ControlAction action, void* parameter, MmsValue* value, bool test)
{ {
MmsValue* timeStamp = MmsValue_newUtcTimeByMsTime(Hal_getTimeInMs()); MmsValue* timeStamp = MmsValue_newUtcTimeByMsTime(Hal_getTimeInMs());

@ -26,7 +26,7 @@ sigint_handler(int signalId)
} }
ControlHandlerResult ControlHandlerResult
controlHandlerForBinaryOutput(void* parameter, MmsValue* value, bool test) controlHandlerForBinaryOutput(ControlAction action, void* parameter, MmsValue* value, bool test)
{ {
if (MmsValue_getType(value) == MMS_BOOLEAN) { if (MmsValue_getType(value) == MMS_BOOLEAN) {

@ -26,7 +26,7 @@ sigint_handler(int signalId)
} }
static ControlHandlerResult static ControlHandlerResult
controlHandlerForBinaryOutput(void* parameter, MmsValue* value, bool test) controlHandlerForBinaryOutput(ControlAction action, void* parameter, MmsValue* value, bool test)
{ {
if (test) if (test)
return CONTROL_RESULT_FAILED; return CONTROL_RESULT_FAILED;

Loading…
Cancel
Save