xref: /openbsd-src/gnu/llvm/lldb/bindings/interface/SBHostOS.i (revision be691f3bb6417f04a68938fadbcaee2d5795e764)
1 //===-- SWIG Interface for SBHostOS -----------------------------*- 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 "Provides information about the host system."
13 ) SBHostOS;
14 class SBHostOS
15 {
16 public:
17 
18     static lldb::SBFileSpec
19     GetProgramFileSpec ();
20 
21     static lldb::SBFileSpec
22     GetLLDBPythonPath ();
23 
24     static lldb::SBFileSpec
25     GetLLDBPath (lldb::PathType path_type);
26 
27     static lldb::SBFileSpec
28     GetUserHomeDirectory ();
29 
30     static void
31     ThreadCreated (const char *name);
32 
33     static lldb::thread_t
34     ThreadCreate (const char *name,
35                   lldb::thread_func_t,
36                   void *thread_arg,
37                   lldb::SBError *err);
38 
39     static bool
40     ThreadCancel (lldb::thread_t thread,
41                   lldb::SBError *err);
42 
43     static bool
44     ThreadDetach (lldb::thread_t thread,
45                   lldb::SBError *err);
46     static bool
47     ThreadJoin (lldb::thread_t thread,
48                 lldb::thread_result_t *result,
49                 lldb::SBError *err);
50 };
51 
52 } // namespace lldb
53