From 2bad5d057a06dc52c726d4703b4a0342c014d390 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 27 Feb 2024 15:58:40 +0200 Subject: Moved function declarations to main.h --- main.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'main.h') diff --git a/main.h b/main.h index e69de29..a95f5ce 100644 --- a/main.h +++ b/main.h @@ -0,0 +1,32 @@ +#ifndef MAIN_H +#define MAIN_H + +#include +#include +#include +#include +#include +#include +#include +#include + +#define MAX_PASSWORD_LENGTH 128 +#define MAX_WEBSITE_LENGTH 128 +#define MAX_USERNAME_LENGTH 128 +#define MAX_PASSWORDS 100 + +struct Password { + char website[MAX_WEBSITE_LENGTH]; + char username[MAX_USERNAME_LENGTH]; + char password[MAX_PASSWORD_LENGTH]; +}; + +extern struct Password passwords[MAX_PASSWORDS]; +extern int numPasswords; + +void generate_password(char *password, int length); +void save_password(struct Password *password, const char *dir); +void load_passwords(const char *dir); +void copy_to_clipboard(char *text); + +#endif /* MAIN_H */ -- cgit v1.2.3