Skip to content
Snippets Groups Projects
Commit 7f68cc81 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

fix build

parent c2306483
No related branches found
No related tags found
No related merge requests found
......@@ -11,10 +11,10 @@ namespace asapo {
class Inotify {
public:
VIRTUAL int Init();
VIRTUAL int AddWatch(int fd, const char* name, uint32_t mask);
VIRTUAL int DeleteWatch(int fd, int wd);
VIRTUAL ssize_t Read(int fd, void* buf, size_t nbytes);
ASAPO_VIRTUAL int Init();
ASAPO_VIRTUAL int AddWatch(int fd, const char* name, uint32_t mask);
ASAPO_VIRTUAL int DeleteWatch(int fd, int wd);
ASAPO_VIRTUAL ssize_t Read(int fd, void* buf, size_t nbytes);
};
}
......
......@@ -32,8 +32,8 @@ const uint32_t kInotifyWatchFlags = IN_CLOSE_WRITE |
class SystemFolderWatch {
public:
VIRTUAL Error StartFolderMonitor(const std::string& root_folder, const std::vector<std::string>& monitored_folders);
VIRTUAL FilesToSend GetFileList(Error* err);
ASAPO_VIRTUAL Error StartFolderMonitor(const std::string& root_folder, const std::vector<std::string>& monitored_folders);
ASAPO_VIRTUAL FilesToSend GetFileList(Error* err);
SystemFolderWatch();
std::unique_ptr<IO> io__;
std::unique_ptr<Inotify> inotify__;
......
......@@ -18,9 +18,9 @@ namespace asapo {
class SystemFolderWatch {
public:
SystemFolderWatch();
VIRTUAL Error StartFolderMonitor(const std::string& root_folder,
ASAPO_VIRTUAL Error StartFolderMonitor(const std::string& root_folder,
const std::vector<std::string>& monitored_folders);
VIRTUAL FilesToSend GetFileList(Error* err);
ASAPO_VIRTUAL FilesToSend GetFileList(Error* err);
std::unique_ptr<IO> io__;
private:
SharedEventList event_list_;
......
......@@ -12,9 +12,9 @@ namespace asapo {
class WatchIO {
public:
explicit WatchIO();
VIRTUAL HANDLE Init(const char* folder, Error* err);
VIRTUAL Error ReadDirectoryChanges(HANDLE handle, LPVOID buffer, DWORD buffer_length, LPDWORD bytes_returned);
VIRTUAL bool IsDirectory(const std::string& path);
ASAPO_VIRTUAL HANDLE Init(const char* folder, Error* err);
ASAPO_VIRTUAL Error ReadDirectoryChanges(HANDLE handle, LPVOID buffer, DWORD buffer_length, LPDWORD bytes_returned);
ASAPO_VIRTUAL bool IsDirectory(const std::string& path);
private:
std::unique_ptr<IO>io_;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment