- fixed examples that have control handlers with old signature

pull/239/head
Michael Zillgith 5 years ago
parent 0bc014580a
commit a6bad96d25

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

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

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

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

@ -88,7 +88,7 @@ clientAuthenticator(void* parameter, AcseAuthenticationParameter authParameter,
}
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);
@ -99,7 +99,7 @@ performCheckHandler (void* parameter, MmsValue* ctlVal, bool test, bool interloc
}
static void
controlHandlerForBinaryOutput(void* parameter, MmsValue* value, bool test)
controlHandlerForBinaryOutput(ControlAction action, void* parameter, MmsValue* value, bool test)
{
MmsValue* timeStamp = MmsValue_newUtcTimeByMsTime(Hal_getTimeInMs());

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

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

Loading…
Cancel
Save