#ifndef FUNC_HPP #define FUNC_HPP #include class Buffer; struct LoginInfo { uint32_t label; uint32_t username; uint32_t password; }; struct LoginInfoPointer { const char *label; const char *username; const char *password; }; struct Index { uint32_t magic; uint32_t count; uint32_t offset; }; int find_logininfo_in_buffer(Buffer &buffer, const char *label); void delete_logininfo_from_buffer(Buffer &buffer, int index_of_pass); void add_logininfo_to_buffer(Buffer &buffer, const char *label, const char *username, const char *password); LoginInfoPointer get_logininfo_pointer_from_buffer(Buffer &buffer, int index_of_pass); void generate_password(std::string &password, int len); #endif