From b36bf1a850306dcc1d8d07bcd4c071794480417a Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 2 Feb 2023 16:33:54 +0100 Subject: [PATCH] defined why2_get_memory_identifier, why2_set_memory_identifier and why2_reset_memory_identifier --- src/core/lib/flags.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/core/lib/flags.c b/src/core/lib/flags.c index b835f33..cc2a8d4 100644 --- a/src/core/lib/flags.c +++ b/src/core/lib/flags.c @@ -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) {