mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-13 17:41:15 -05:00
24 lines
463 B
C++
24 lines
463 B
C++
|
#include <FileWatcher.hpp>
|
||
|
|
||
|
FileWatcher::FileWatcher(
|
||
|
ghc::filesystem::path const& file, FileWatchCallback callback, ErrorCallback error
|
||
|
) {
|
||
|
m_filemode = ghc::filesystem::is_regular_file(file);
|
||
|
|
||
|
m_platformHandle = nullptr;
|
||
|
m_file = file;
|
||
|
m_callback = callback;
|
||
|
m_error = error;
|
||
|
}
|
||
|
|
||
|
FileWatcher::~FileWatcher() {
|
||
|
}
|
||
|
|
||
|
void FileWatcher::watch() {
|
||
|
// TODO: setup inotify or something
|
||
|
}
|
||
|
|
||
|
bool FileWatcher::watching() const {
|
||
|
return false;
|
||
|
}
|