2022-02-15 04:30:27 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "UnsyncCommon.h"
|
|
|
|
|
#include "UnsyncCore.h"
|
|
|
|
|
#include "UnsyncRemote.h"
|
|
|
|
|
|
|
|
|
|
namespace unsync {
|
|
|
|
|
|
2023-11-21 18:25:48 -05:00
|
|
|
struct FAuthDesc;
|
|
|
|
|
|
2022-02-15 04:30:27 -05:00
|
|
|
struct FCmdSyncOptions
|
|
|
|
|
{
|
|
|
|
|
FAlgorithmOptions Algorithm;
|
|
|
|
|
|
2022-03-08 08:17:08 -05:00
|
|
|
FPath Source;
|
|
|
|
|
FPath Target;
|
|
|
|
|
FPath SourceManifestOverride;
|
2023-04-25 17:41:49 -04:00
|
|
|
FPath ScavengeRoot;
|
|
|
|
|
uint32 ScavengeDepth = 5;
|
2023-11-13 20:57:57 -05:00
|
|
|
uint64 BackgroundTaskMemoryBudget = 2_GB;
|
2022-02-15 04:30:27 -05:00
|
|
|
|
2022-07-07 22:20:00 -04:00
|
|
|
std::vector<FPath> Overlays;
|
|
|
|
|
|
2022-02-15 04:30:27 -05:00
|
|
|
FRemoteDesc Remote;
|
2023-11-21 18:25:48 -05:00
|
|
|
FAuthDesc* AuthDesc = nullptr;
|
2022-02-15 04:30:27 -05:00
|
|
|
|
2022-05-24 13:55:09 -04:00
|
|
|
bool bFullDifference = false;
|
|
|
|
|
bool bFullSourceScan = false;
|
|
|
|
|
bool bCleanup = false;
|
2022-02-15 04:30:27 -05:00
|
|
|
|
2022-10-12 20:45:24 -04:00
|
|
|
bool bCheckAvailableSpace = true;
|
|
|
|
|
|
2022-02-15 04:30:27 -05:00
|
|
|
bool bValidateTargetFiles = true; // WARNING: turning this off is intended only for testing/profiling
|
|
|
|
|
|
|
|
|
|
FSyncFilter* Filter = nullptr;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
int32 CmdSync(const FCmdSyncOptions& Options);
|
|
|
|
|
|
|
|
|
|
} // namespace unsync
|