From 04856bb9f680edb816271e0000e804bcb2be808e Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sun, 16 Oct 2022 19:52:56 +0200 Subject: [PATCH] created callback for encryptionOperation --- src/lib/flags.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/flags.c b/src/lib/flags.c index 7dd6ba1..9c33f1c 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -5,10 +5,13 @@ //CONSTS (this is just local) #define DEFAULT_FLAGS (inputFlags) { 0, 0, 0 } +int encryptionOperation(int text, int encryptedText); + //VARIABLES char encryptionSeparator = '.'; //NOPE > DO NOT TOUCH THIS, USE setEncryptionSeparator instead < unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength instead < inputFlags flags = DEFAULT_FLAGS; +int (*encryptionOperation_cb)(int, int) = encryptionOperation; //GETTERS char getEncryptionSeparator()