Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/installer/corehost/cli/apphost/bundle/runner.h')
-rw-r--r--src/installer/corehost/cli/apphost/bundle/runner.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/installer/corehost/cli/apphost/bundle/runner.h b/src/installer/corehost/cli/apphost/bundle/runner.h
new file mode 100644
index 00000000000..07dadede0fd
--- /dev/null
+++ b/src/installer/corehost/cli/apphost/bundle/runner.h
@@ -0,0 +1,40 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+#ifndef __RUNNER_H__
+#define __RUNNER_H__
+
+#include "error_codes.h"
+
+namespace bundle
+{
+ class runner_t
+ {
+ public:
+ runner_t(const pal::string_t& bundle_path)
+ : m_bundle_path(bundle_path)
+ , m_bundle_map(nullptr)
+ , m_bundle_length(0)
+ {
+ }
+
+ StatusCode extract();
+
+ pal::string_t extraction_dir()
+ {
+ return m_extraction_dir;
+ }
+
+ private:
+ void map_host();
+ void unmap_host();
+
+ pal::string_t m_bundle_path;
+ pal::string_t m_extraction_dir;
+ int8_t* m_bundle_map;
+ size_t m_bundle_length;
+ };
+}
+
+#endif // __RUNNER_H__