LLDB mainline
HostInfoWindows.h
Go to the documentation of this file.
1//===-- HostInfoWindows.h ---------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef lldb_Host_windows_HostInfoWindows_h_
10#define lldb_Host_windows_HostInfoWindows_h_
11
14#include "llvm/Support/VersionTuple.h"
15#include <optional>
16
17namespace lldb_private {
18class UserIDResolver;
19
21 friend class HostInfoBase;
22
23public:
24 static void Initialize(SharedLibraryDirectoryHelper *helper = nullptr);
25 static void Terminate();
26
27 static size_t GetPageSize();
29
30 static llvm::VersionTuple GetOSVersion();
31 static std::optional<std::string> GetOSBuildString();
32 static std::optional<std::string> GetOSKernelDescription();
33 static bool GetHostname(std::string &s);
36
37 static bool GetEnvironmentVar(const std::string &var_name, std::string &var);
38
39private:
41};
42}
43
44#endif
A file utility class.
Definition: FileSpec.h:56
void(FileSpec &this_file) SharedLibraryDirectoryHelper
A helper function for determining the liblldb location.
Definition: HostInfoBase.h:63
static llvm::VersionTuple GetOSVersion()
static FileSpec GetProgramFileSpec()
static UserIDResolver & GetUserIDResolver()
static std::optional< std::string > GetOSBuildString()
static bool GetHostname(std::string &s)
static void Initialize(SharedLibraryDirectoryHelper *helper=nullptr)
static std::optional< std::string > GetOSKernelDescription()
static FileSpec m_program_filespec
static bool GetEnvironmentVar(const std::string &var_name, std::string &var)
An abstract interface for things that know how to map numeric user/group IDs into names.
A class that represents a running process on the host machine.