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

host_startup_info.h « cli « corehost « installer « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4cb4b3e92b97c7847e9f97c9e7dd062bfa29aee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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 __HOST_STARTUP_INFO_H_
#define __HOST_STARTUP_INFO_H_

#include "pal.h"
#include "host_interface.h"

struct host_startup_info_t
{
    host_startup_info_t() {}
    host_startup_info_t(
        const pal::char_t* host_path_value,
        const pal::char_t* dotnet_root_value,
        const pal::char_t* app_path_value);

    void parse(
        int argc,
        const pal::char_t* argv[]);

    bool is_valid(host_mode_t mode) const;

    const pal::string_t get_app_name() const;

    static int get_host_path(int argc, const pal::char_t* argv[], pal::string_t* host_path);

    pal::string_t host_path;    // The path to the current hosting binary.
    pal::string_t dotnet_root;  // The path to the framework.
    pal::string_t app_path;     // For apphost, the path to the app dll; for muxer, not applicable as this information is not yet parsed.
};

#endif // __HOST_STARTUP_INFO_H_