Johnny Chen | fdc4a86 | 2011-07-19 22:41:47 +0000 | [diff] [blame] | 1 | //===-- SWIG Interface for SBHostOS -----------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | namespace lldb { |
| 11 | |
| 12 | class SBHostOS |
| 13 | { |
| 14 | public: |
| 15 | |
| 16 | static lldb::SBFileSpec |
| 17 | GetProgramFileSpec (); |
| 18 | |
Greg Clayton | 06357c9 | 2014-07-30 17:38:47 +0000 | [diff] [blame] | 19 | static lldb::SBFileSpec |
| 20 | GetLLDBPythonPath (); |
| 21 | |
| 22 | static lldb::SBFileSpec |
| 23 | GetLLDBPath (lldb::PathType path_type); |
| 24 | |
Jason Molenda | 878ae01 | 2016-02-19 00:05:17 +0000 | [diff] [blame] | 25 | static lldb::SBFileSpec |
| 26 | GetUserHomeDirectory (); |
| 27 | |
Johnny Chen | fdc4a86 | 2011-07-19 22:41:47 +0000 | [diff] [blame] | 28 | static void |
| 29 | ThreadCreated (const char *name); |
| 30 | |
| 31 | static lldb::thread_t |
| 32 | ThreadCreate (const char *name, |
Deepak Panickal | 9b35cf5 | 2014-07-01 17:57:19 +0000 | [diff] [blame] | 33 | lldb::thread_func_t, |
Johnny Chen | fdc4a86 | 2011-07-19 22:41:47 +0000 | [diff] [blame] | 34 | void *thread_arg, |
| 35 | lldb::SBError *err); |
| 36 | |
| 37 | static bool |
| 38 | ThreadCancel (lldb::thread_t thread, |
| 39 | lldb::SBError *err); |
| 40 | |
| 41 | static bool |
| 42 | ThreadDetach (lldb::thread_t thread, |
| 43 | lldb::SBError *err); |
| 44 | static bool |
| 45 | ThreadJoin (lldb::thread_t thread, |
Deepak Panickal | 9b35cf5 | 2014-07-01 17:57:19 +0000 | [diff] [blame] | 46 | lldb::thread_result_t *result, |
Johnny Chen | fdc4a86 | 2011-07-19 22:41:47 +0000 | [diff] [blame] | 47 | lldb::SBError *err); |
| 48 | }; |
| 49 | |
| 50 | } // namespace lldb |