This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
FlippyPass/project/backend/manager.h

30 lines
513 B
C
Raw Permalink Normal View History

// Define once
#ifndef H_MANAGER
#define H_MANAGER
// Libraries
#include <furi.h>
2024-09-08 20:12:29 -05:00
#include "base.h"
#include "pass.h"
2024-09-08 23:41:04 -05:00
#include "secure.h"
// Structures
typedef struct {
Password* current;
Password* new;
2024-09-08 23:41:04 -05:00
SecureStorage* secure_storage;
2024-09-05 16:02:24 -05:00
char** names;
int count;
} Manager;
// Constructors
2024-09-09 00:10:09 -05:00
Manager* manager_init(char* key);
// Functions
2024-09-08 23:41:04 -05:00
void manager_savepass(Manager* manager, Password* pass);
void manager_loadpass(Manager* manager, char* name);
void manager_free(Manager* manager);
#endif