xref: /openbsd-src/gnu/llvm/lldb/bindings/interface/SBProcessInfo.i (revision be691f3bb6417f04a68938fadbcaee2d5795e764)
1061da546Spatrick //===-- SWIG Interface for SBProcessInfo-------------------------*- C++ -*-===//
2061da546Spatrick //
3061da546Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4061da546Spatrick // See https://llvm.org/LICENSE.txt for license information.
5061da546Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6061da546Spatrick //
7061da546Spatrick //===----------------------------------------------------------------------===//
8061da546Spatrick 
9061da546Spatrick namespace lldb {
10061da546Spatrick 
11061da546Spatrick %feature("docstring",
12061da546Spatrick "Describes an existing process and any discoverable information that pertains to
13061da546Spatrick that process."
14061da546Spatrick ) SBProcessInfo;
15061da546Spatrick 
16061da546Spatrick class SBProcessInfo
17061da546Spatrick {
18061da546Spatrick public:
19061da546Spatrick     SBProcessInfo();
20061da546Spatrick 
21061da546Spatrick     SBProcessInfo (const SBProcessInfo &rhs);
22061da546Spatrick 
23061da546Spatrick     ~SBProcessInfo ();
24061da546Spatrick 
25061da546Spatrick     bool
26061da546Spatrick     IsValid ();
27061da546Spatrick 
28061da546Spatrick     explicit operator bool() const;
29061da546Spatrick 
30061da546Spatrick     const char *
31061da546Spatrick     GetName ();
32061da546Spatrick 
33061da546Spatrick     SBFileSpec
34061da546Spatrick     GetExecutableFile ();
35061da546Spatrick 
36061da546Spatrick     lldb::pid_t
37061da546Spatrick     GetProcessID ();
38061da546Spatrick 
39061da546Spatrick     uint32_t
40061da546Spatrick     GetUserID ();
41061da546Spatrick 
42061da546Spatrick     uint32_t
43061da546Spatrick     GetGroupID ();
44061da546Spatrick 
45061da546Spatrick     bool
46061da546Spatrick     UserIDIsValid ();
47061da546Spatrick 
48061da546Spatrick     bool
49061da546Spatrick     GroupIDIsValid ();
50061da546Spatrick 
51061da546Spatrick     uint32_t
52061da546Spatrick     GetEffectiveUserID ();
53061da546Spatrick 
54061da546Spatrick     uint32_t
55061da546Spatrick     GetEffectiveGroupID ();
56061da546Spatrick 
57061da546Spatrick     bool
58061da546Spatrick     EffectiveUserIDIsValid ();
59061da546Spatrick 
60061da546Spatrick     bool
61061da546Spatrick     EffectiveGroupIDIsValid ();
62061da546Spatrick 
63061da546Spatrick     lldb::pid_t
64061da546Spatrick     GetParentProcessID ();
65*be691f3bSpatrick 
66*be691f3bSpatrick     %feature("docstring",
67*be691f3bSpatrick     "Return the target triple (arch-vendor-os) for the described process."
68*be691f3bSpatrick     ) GetTriple;
69*be691f3bSpatrick     const char *
70*be691f3bSpatrick     GetTriple ();
71061da546Spatrick };
72061da546Spatrick 
73061da546Spatrick } // namespace lldb
74