]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/bindings/interface/SBEnvironment.i
Merge commit 3537338d1ab9 from llvm git (by Nikolas Klauser):
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / bindings / interface / SBEnvironment.i
1 //===-- SWIG Interface for SBEnvironment-------------------------*- 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 namespace lldb {
10
11 %feature("docstring",
12 "Represents the environment of a certain process.
13
14 Example: ::
15
16   for entry in lldb.debugger.GetSelectedTarget().GetEnvironment().GetEntries():
17     print(entry)
18
19 ") SBEnvironment;
20 class SBEnvironment {
21 public:
22     SBEnvironment ();
23
24     SBEnvironment (const lldb::SBEnvironment &rhs);
25
26     ~SBEnvironment();
27
28     size_t GetNumValues();
29
30     const char *Get(const char *name);
31
32     const char *GetNameAtIndex(size_t index);
33
34     const char *GetValueAtIndex(size_t index);
35
36     SBStringList GetEntries();
37
38     void PutEntry(const char *name_and_value);
39
40     void SetEntries(const SBStringList &entries, bool append);
41
42     bool Set(const char *name, const char *value, bool overwrite);
43
44     bool Unset(const char *name);
45
46     void Clear();
47 };
48
49 } // namespace lldb