async part

This commit is contained in:
2023-10-25 17:00:35 +02:00
parent 150bbe05f7
commit 12df9de1b4
6 changed files with 91 additions and 19 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include "./clamav_module_async_interface.hpp"
#include <mutex>
class ClamAVModuleAsyncWrapper : public ClamAVModuleAsyncInterface {
ClamAVModuleInterface& _cavmi;
std::mutex _cavmi_mutex;
public:
ClamAVModuleAsyncWrapper(ClamAVModuleInterface& cavmi);
std::future<ScanResult> scanFilePath(std::string_view path) override;
};