aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/client/misc/proc_info.h
blob: b1526e5c47012489311e0733c57b3b55e1b9d5b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <util/generic/string.h>

#include <optional>

namespace NTvmAuth::NUtils {
    struct TProcInfo {
        TString Pid;
        std::optional<TString> ProcessName;
        TString VersionPrefix;

        void AddToRequest(IOutputStream& out) const;

        static TProcInfo Create(const TString& versionPrefix);
        static std::optional<TString> GetProcessName();
    };
}