Mercurial > minori
comparison include/core/filesystem.h @ 393:963047512d34
*: clang-format
| author | Paper <paper@tflc.us> |
|---|---|
| date | Fri, 07 Nov 2025 07:16:15 -0500 |
| parents | 0265e125f680 |
| children |
comparison
equal
deleted
inserted
replaced
| 392:a72d6d7b3568 | 393:963047512d34 |
|---|---|
| 1 #ifndef MINORI_CORE_FILESYSTEM_H_ | 1 #ifndef MINORI_CORE_FILESYSTEM_H_ |
| 2 #define MINORI_CORE_FILESYSTEM_H_ | 2 #define MINORI_CORE_FILESYSTEM_H_ |
| 3 #include <filesystem> | 3 #include <filesystem> |
| 4 #include <functional> | |
| 4 #include <string> | 5 #include <string> |
| 5 #include <functional> | |
| 6 | 6 |
| 7 namespace Filesystem { | 7 namespace Filesystem { |
| 8 | 8 |
| 9 void CreateDirectories(const std::filesystem::path &path); | 9 void CreateDirectories(const std::filesystem::path &path); |
| 10 std::filesystem::path GetDotPath(); // %APPDATA%/minori/, ~/Library/Application Support/minori/, ~/.config/minori/... | 10 std::filesystem::path GetDotPath(); // %APPDATA%/minori/, ~/Library/Application Support/minori/, ~/.config/minori/... |
| 30 virtual ~IWatcher() = default; | 30 virtual ~IWatcher() = default; |
| 31 virtual void Process() = 0; | 31 virtual void Process() = 0; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 /* Constructor functions. Yes, I'm doing this the C way :) */ | 34 /* Constructor functions. Yes, I'm doing this the C way :) */ |
| 35 IWatcher *GetRecursiveFilesystemWatcher(void *opaque, | 35 IWatcher *GetRecursiveFilesystemWatcher(void *opaque, const std::filesystem::path &path, |
| 36 const std::filesystem::path &path, IWatcher::EventHandler handler); | 36 IWatcher::EventHandler handler); |
| 37 IWatcher *GetFilesystemWatcher(void *opaque, const std::filesystem::path &path, IWatcher::EventHandler handler); | 37 IWatcher *GetFilesystemWatcher(void *opaque, const std::filesystem::path &path, IWatcher::EventHandler handler); |
| 38 | 38 |
| 39 } // namespace Filesystem | 39 } // namespace Filesystem |
| 40 | 40 |
| 41 #endif // MINORI_CORE_FILESYSTEM_H_ | 41 #endif // MINORI_CORE_FILESYSTEM_H_ |
