Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
PackDeletionTelemetry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8namespace Core { class PathView; }
9namespace PackDeletionTelemetry { struct EventData; }
10namespace PackDeletionTelemetry { struct PackInfo; }
11// clang-format on
12
13namespace PackDeletionTelemetry {
14// functions
15// NOLINTBEGIN
16MCNAPI ::PackDeletionTelemetry::EventData createEventData(
17 ::std::string_view reason,
18 ::PackDeletionTelemetry::PackInfo packInfo,
19 ::Core::PathView path,
20 ::std::optional<uint64> sizeBeforeDelete,
21 bool deletionSucceeded
22);
23
24MCNAPI void sendEvent(
25 ::IMinecraftEventing* eventing,
26 ::std::string_view reason,
27 ::PackDeletionTelemetry::PackInfo packInfo,
28 ::Core::PathView path,
29 ::std::optional<uint64> sizeBeforeDelete,
30 bool deletionSucceeded
31);
32
33MCNAPI ::std::optional<uint64> tryMeasurePathSize(::Core::PathView path);
34// NOLINTEND
35
36} // namespace PackDeletionTelemetry
Definition PathView.h:19
Definition IMinecraftEventing.h:152
Definition EventData.h:7
Definition PackInfo.h:7