async part
This commit is contained in:
18
src/solanaceae/clamav/clamav_module_async_wrapper.hpp
Normal file
18
src/solanaceae/clamav/clamav_module_async_wrapper.hpp
Normal 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;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user