diff options
author | Thomas Groman <tgroman@nuegia.net> | 2020-09-21 15:08:56 -0700 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2020-09-21 15:08:56 -0700 |
commit | 4aa31001bae125293466d582c2ed1dca441c1103 (patch) | |
tree | 5a2bdfc6d6b0ea1f94c53e7c7108d7108940f8c5 /src/user.cpp | |
parent | effdcc9b1cf185f24e67d9e627a77d823bcfef8f (diff) | |
parent | b7965d023cb68bce6d9495eb6afbc73206c1afef (diff) | |
download | twinkle-jackaudio.tar twinkle-jackaudio.tar.gz twinkle-jackaudio.tar.lz twinkle-jackaudio.tar.xz twinkle-jackaudio.zip |
Merge branch 'master' into jackaudiojackaudio
Diffstat (limited to 'src/user.cpp')
-rw-r--r-- | src/user.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/user.cpp b/src/user.cpp index 588bb55..16a4c3b 100644 --- a/src/user.cpp +++ b/src/user.cpp @@ -163,7 +163,7 @@ extern t_phone *phone; #define FLD_ZRTP_SEND_IF_SUPPORTED "zrtp_send_if_supported" // MWI -#define FLD_MWI_SOLLICITED "mwi_sollicited" +#define FLD_MWI_SOLICITED "mwi_solicited" #define FLD_MWI_USER "mwi_user" #define FLD_MWI_SERVER "mwi_server" #define FLD_MWI_VIA_PROXY "mwi_via_proxy" @@ -459,7 +459,7 @@ t_user::t_user() { zrtp_goclear_warning = true; zrtp_sdp = true; zrtp_send_if_supported = false; - mwi_sollicited = false; + mwi_solicited = false; mwi_user.clear(); mwi_via_proxy = false; mwi_subscription_time = 3600; @@ -578,7 +578,7 @@ t_user::t_user(const t_user &u) { zrtp_goclear_warning = u.zrtp_goclear_warning; zrtp_sdp = u.zrtp_sdp; zrtp_send_if_supported = u.zrtp_send_if_supported; - mwi_sollicited = u.mwi_sollicited; + mwi_solicited = u.mwi_solicited; mwi_user = u.mwi_user; mwi_server = u.mwi_server; mwi_via_proxy = u.mwi_via_proxy; @@ -1380,10 +1380,10 @@ bool t_user::get_zrtp_send_if_supported(void) const { return result; } -bool t_user::get_mwi_sollicited(void) const { +bool t_user::get_mwi_solicited(void) const { bool result; mtx_user.lock(); - result = mwi_sollicited; + result = mwi_solicited; mtx_user.unlock(); return result; } @@ -2070,9 +2070,9 @@ void t_user::set_zrtp_send_if_supported(bool b) { mtx_user.unlock(); } -void t_user::set_mwi_sollicited(bool b) { +void t_user::set_mwi_solicited(bool b) { mtx_user.lock(); - mwi_sollicited = b; + mwi_solicited = b; mtx_user.unlock(); } @@ -2524,8 +2524,8 @@ bool t_user::read_config(const string &filename, string &error_msg) { zrtp_sdp = yesno2bool(value); } else if (parameter == FLD_ZRTP_SEND_IF_SUPPORTED) { zrtp_send_if_supported = yesno2bool(value); - } else if (parameter == FLD_MWI_SOLLICITED) { - mwi_sollicited = yesno2bool(value); + } else if (parameter == FLD_MWI_SOLICITED) { + mwi_solicited = yesno2bool(value); } else if (parameter == FLD_MWI_USER) { mwi_user = value; } else if (parameter == FLD_MWI_SERVER) { @@ -2869,7 +2869,7 @@ bool t_user::write_config(const string &filename, string &error_msg) { // Write MWI settings config << "# MWI\n"; - config << FLD_MWI_SOLLICITED << '=' << bool2yesno(mwi_sollicited) << endl; + config << FLD_MWI_SOLICITED << '=' << bool2yesno(mwi_solicited) << endl; config << FLD_MWI_USER << '=' << mwi_user << endl; if (mwi_server.is_valid()) { config << FLD_MWI_SERVER << '=' << mwi_server.encode_noscheme() << endl; |