Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions C/services/north/north.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,7 @@ void NorthService::addConfigDefaults(DefaultConfigCategory& defaultConfig)
* @param name Name of the variable to write
* @param value Value to write to the variable
* @param destination Where to write the value
* @return true if write was succesfully sent to dispatcher, else false
*/
bool NorthService::write(const string& name, const string& value, const ControlDestination destination)
{
Expand Down Expand Up @@ -961,6 +962,7 @@ bool NorthService::write(const string& name, const string& value, const ControlD
* @param value Value to write to the variable
* @param destination Where to write the value
* @param arg Argument used to determine destination
* @return true if write was succesfully sent to dispatcher, else false
*/
bool NorthService::write(const string& name, const string& value, const ControlDestination destination, const string& arg)
{
Expand Down Expand Up @@ -1008,6 +1010,7 @@ bool NorthService::write(const string& name, const string& value, const ControlD
* @param paramCount The number of parameters
* @param parameters The parameters to the operation
* @param destination Where to write the value
* @return -1 in case of error on operation destination, 1 if operation was succesfully sent to dispatcher, else 0
*/
int NorthService::operation(const string& name, int paramCount, char *names[], char *parameters[], const ControlDestination destination)
{
Expand Down Expand Up @@ -1039,8 +1042,7 @@ int NorthService::operation(const string& name, int paramCount, char *names[],
payload += ",";
}
payload += " } } }";
sendToDispatcher("/dispatch/operation", payload);
return -1;
return static_cast<int>(sendToDispatcher("/dispatch/operation", payload));
}

/**
Expand All @@ -1051,6 +1053,7 @@ int NorthService::operation(const string& name, int paramCount, char *names[],
* @param parameters The parameters to the operation
* @param destination Where to write the value
* @param arg Argument used to determine destination
* @return 1 if operation was succesfully sent to dispatcher, else 0
*/
int NorthService::operation(const string& name, int paramCount, char *names[], char *parameters[], const ControlDestination destination, const string& arg)
{
Expand Down Expand Up @@ -1099,8 +1102,7 @@ int NorthService::operation(const string& name, int paramCount, char *names[], c
payload += ",";
}
payload += "} } }";
sendToDispatcher("/dispatch/operation", payload);
return -1;
return static_cast<int>(sendToDispatcher("/dispatch/operation", payload));
}

/**
Expand Down