FlippyPass/project/backend/manager.h

30 lines
No EOL
513 B
C

// Define once
#ifndef H_MANAGER
#define H_MANAGER
// Libraries
#include <furi.h>
#include "base.h"
#include "pass.h"
#include "secure.h"
// Structures
typedef struct {
Password* current;
Password* new;
SecureStorage* secure_storage;
char** names;
int count;
} Manager;
// Constructors
Manager* manager_init(char* key);
// Functions
void manager_savepass(Manager* manager, Password* pass);
void manager_loadpass(Manager* manager, char* name);
void manager_free(Manager* manager);
#endif