diff --git a/C/services/north/north.cpp b/C/services/north/north.cpp index d2ed9a792d..d74e15dc4c 100755 --- a/C/services/north/north.cpp +++ b/C/services/north/north.cpp @@ -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) { @@ -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) { @@ -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) { @@ -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(sendToDispatcher("/dispatch/operation", payload)); } /** @@ -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) { @@ -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(sendToDispatcher("/dispatch/operation", payload)); } /**