created getter function for encryptionOperation_cb
and also created encryptionOperation_type_cb cuz I didn't found any other way to make it work hehe
This commit is contained in:
parent
04856bb9f6
commit
148070c2bb
@ -11,7 +11,8 @@ int encryptionOperation(int text, int encryptedText);
|
|||||||
char encryptionSeparator = '.'; //NOPE > DO NOT TOUCH THIS, USE setEncryptionSeparator instead <
|
char encryptionSeparator = '.'; //NOPE > DO NOT TOUCH THIS, USE setEncryptionSeparator instead <
|
||||||
unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength instead <
|
unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength instead <
|
||||||
inputFlags flags = DEFAULT_FLAGS;
|
inputFlags flags = DEFAULT_FLAGS;
|
||||||
int (*encryptionOperation_cb)(int, int) = encryptionOperation;
|
typedef int (*encryptionOperation_type_cb)(int, int);
|
||||||
|
encryptionOperation_type_cb encryptionOperation_cb = encryptionOperation;
|
||||||
|
|
||||||
//GETTERS
|
//GETTERS
|
||||||
char getEncryptionSeparator()
|
char getEncryptionSeparator()
|
||||||
@ -49,6 +50,11 @@ outputFlags noOutput(boolean exitCode)
|
|||||||
return (outputFlags) { emptyText, emptyKey, 0, 0, 0, exitCode };
|
return (outputFlags) { emptyText, emptyKey, 0, 0, 0, exitCode };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
encryptionOperation_type_cb getEncryptionOperation()
|
||||||
|
{
|
||||||
|
return encryptionOperation_cb;
|
||||||
|
}
|
||||||
|
|
||||||
//SETTERS
|
//SETTERS
|
||||||
void setEncryptionSeparator(char encryptionSeparatorNew)
|
void setEncryptionSeparator(char encryptionSeparatorNew)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user