* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int ServiceDhs::perform_update(const std::string& ip)
+Service::UpdateErrorCode ServiceDhs::perform_update(const std::string& ip)
{
string url = BaseUrl;
url.append(ip);
if ( boost::regex_search(curl_data,expr_done) )
{
// Update successful
- return 0;
+ return UpdateOk;
}
else
{
get_logger()->print_httphelper_not_initialized();
HTTPHelp->re_initialize();
}
- return -1;
+
+ return GenericError;
}