added askin_username getter & setter

This commit is contained in:
Václav Šmejkal 2025-02-01 20:47:45 +01:00
parent 2970878bce
commit 6c53169f09
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 14 additions and 0 deletions

View File

@ -83,6 +83,9 @@ enum WHY2_CHAT_SERVER_TYPE //TYPE OF SERVER
void __why2_set_asking_password(why2_bool value); //IF HASH SHOULD BE SENT INSTEAD OF NORMAL MESSAGE
why2_bool __why2_get_asking_password();
void __why2_set_asking_username(why2_bool value);
why2_bool __why2_get_asking_username();
#ifdef __cplusplus
}
#endif

View File

@ -22,6 +22,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <termios.h>
why2_bool asking_password = 0;
why2_bool asking_username = 0;
void __why2_set_asking_password(why2_bool value)
{
@ -44,4 +45,14 @@ void __why2_set_asking_password(why2_bool value)
why2_bool __why2_get_asking_password()
{
return asking_password;
}
void __why2_set_asking_username(why2_bool value)
{
asking_username = value;
}
why2_bool __why2_get_asking_username()
{
return asking_username;
}