Commit dc8dff86 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee Committed by Guillaume Roguez

account: Do not hardcode exported constants

Refs #66476

Change-Id: Ic430dcf5d64fe9f5e9e322d159550c10662b121f
parent f7be9c03
......@@ -58,6 +58,7 @@
#include "upnp/upnp_control.h"
#include "ip_utils.h"
#include "intrin.h"
#include "dring/account_const.h"
namespace ring {
......@@ -459,7 +460,7 @@ Account::mapStateNumberToString(RegistrationState state)
CASE_STATE(ERROR_EXIST_STUN);
CASE_STATE(ERROR_NOT_ACCEPTABLE);
default:
return "ERROR_GENERIC";
return DRing::Account::States::ERROR_GENERIC;
}
#undef CASE_STATE
......
......@@ -42,6 +42,7 @@ constexpr static const char READY [] = "READY"
constexpr static const char UNREGISTERED [] = "UNREGISTERED" ;
constexpr static const char TRYING [] = "TRYING" ;
constexpr static const char ERROR [] = "ERROR" ;
constexpr static const char ERROR_GENERIC [] = "ERROR_GENERIC" ;
constexpr static const char ERROR_AUTH [] = "ERRORAUTH" ;
constexpr static const char ERROR_NETWORK [] = "ERRORNETWORK" ;
constexpr static const char ERROR_HOST [] = "ERRORHOST" ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment