summary refs log tree commit diff
path: root/src/Cache_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r--src/Cache_p.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h

index a32793ea..96000ae3 100644 --- a/src/Cache_p.h +++ b/src/Cache_p.h
@@ -33,8 +33,11 @@ #endif #include <nlohmann/json.hpp> -#include <mtx/responses.hpp> +#include <mtx/responses/messages.hpp> +#include <mtx/responses/notifications.hpp> +#include <mtx/responses/sync.hpp> #include <mtxclient/crypto/client.hpp> +#include <mtxclient/http/client.hpp> #include "CacheCryptoStructs.h" #include "CacheStructs.h" @@ -65,6 +68,8 @@ public: void deleteUserKeys(lmdb::txn &txn, lmdb::dbi &db, const std::vector<std::string> &user_ids); + void query_keys(const std::string &user_id, + std::function<void(const UserKeyCache &, mtx::http::RequestErr)> cb); // device & user verification cache VerificationStatus verificationStatus(const std::string &user_id);