summaryrefslogtreecommitdiff
path: root/scripts/interface/SBHostOS.i
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/interface/SBHostOS.i')
-rw-r--r--scripts/interface/SBHostOS.i47
1 files changed, 47 insertions, 0 deletions
diff --git a/scripts/interface/SBHostOS.i b/scripts/interface/SBHostOS.i
new file mode 100644
index 0000000000000..d9f42160bf09e
--- /dev/null
+++ b/scripts/interface/SBHostOS.i
@@ -0,0 +1,47 @@
+//===-- SWIG Interface for SBHostOS -----------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+namespace lldb {
+
+class SBHostOS
+{
+public:
+
+ static lldb::SBFileSpec
+ GetProgramFileSpec ();
+
+ static lldb::SBFileSpec
+ GetLLDBPythonPath ();
+
+ static lldb::SBFileSpec
+ GetLLDBPath (lldb::PathType path_type);
+
+ static void
+ ThreadCreated (const char *name);
+
+ static lldb::thread_t
+ ThreadCreate (const char *name,
+ lldb::thread_func_t,
+ void *thread_arg,
+ lldb::SBError *err);
+
+ static bool
+ ThreadCancel (lldb::thread_t thread,
+ lldb::SBError *err);
+
+ static bool
+ ThreadDetach (lldb::thread_t thread,
+ lldb::SBError *err);
+ static bool
+ ThreadJoin (lldb::thread_t thread,
+ lldb::thread_result_t *result,
+ lldb::SBError *err);
+};
+
+} // namespace lldb