blob: 98e7b9501e4548d4d80cb1af4ef70c634b833a34 [file] [log] [blame]
#pragma once
#include <filesystem>
namespace phosphor
{
namespace software
{
namespace manager
{
namespace fs = std::filesystem;
/** @class Sync
* @brief Contains filesystem sync functions.
* @details The software manager class that contains functions to perform
* sync operations.
*/
class Sync
{
public:
Sync() = default;
Sync(const Sync&) = delete;
Sync& operator=(const Sync&) = delete;
Sync(Sync&&) = default;
Sync& operator=(Sync&&) = default;
~Sync() = default;
/**
* @brief Process requested file or directory.
* @param[in] mask - The inotify mask.
* @param[in] entryPath - The file or directory to process.
* @param[out] result - 0 if successful.
*/
int processEntry(int mask, const fs::path& entryPath);
};
} // namespace manager
} // namespace software
} // namespace phosphor