defined why2_get_memory_identifier, why2_set_memory_identifier and why2_reset_memory_identifier

This commit is contained in:
Václav Šmejkal 2023-02-02 16:33:54 +01:00
parent 2c7130304f
commit b36bf1a850
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -82,6 +82,11 @@ why2_bool why2_get_flags_changed(void)
return flagsChanged;
}
char *why2_get_memory_identifier(void)
{
return memory_identifier;
}
//SETTERS
void why2_set_encryption_separator(char encryptionSeparatorNew)
{
@ -109,6 +114,16 @@ void why2_set_encryption_operation(why2_encryption_operation_cb newEncryptionOpe
encryptionOperation_cb = newEncryptionOperation;
}
void why2_set_memory_identifier(char *new_memory_identifier)
{
memory_identifier = new_memory_identifier;
}
void why2_reset_memory_identifier(void)
{
memory_identifier = DEFAULT_MEMORY_IDENTIFIER;
}
//SOME OTHER SHIT
int encryptionOperation(int text, int encryptedText)
{