* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int ServiceDyns::perform_update(const std::string& ip)
+Service::UpdateErrorCode ServiceDyns::perform_update(const std::string& ip)
{
string url = BaseUrl;
url.append(ip);
if ( status_code == "200" )
{
- return 0;
+ return UpdateOk;
}
else if ( status_code == "401" )
{
get_logger()->print_httphelper_not_initialized();
HTTPHelp->re_initialize();
}
- return -1;
+ return GenericError;
}