mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
31 lines
588 B
C++
31 lines
588 B
C++
#pragma once
|
|
|
|
#include "generator/mwm_diff/diff.hpp"
|
|
|
|
#include "storage/storage_defines.hpp"
|
|
|
|
#include <functional>
|
|
|
|
namespace base
|
|
{
|
|
class Cancellable;
|
|
}
|
|
|
|
namespace storage
|
|
{
|
|
namespace diffs
|
|
{
|
|
struct ApplyDiffParams
|
|
{
|
|
std::string m_diffReadyPath;
|
|
LocalFilePtr m_diffFile;
|
|
LocalFilePtr m_oldMwmFile;
|
|
};
|
|
|
|
using OnDiffApplicationFinished = std::function<void(generator::mwm_diff::DiffApplicationResult)>;
|
|
|
|
void ApplyDiff(ApplyDiffParams && p, base::Cancellable const & cancellable,
|
|
OnDiffApplicationFinished const & task);
|
|
} // namespace diffs
|
|
} // namespace storage
|