summaryrefslogtreecommitdiff
path: root/scripts/interface/SBHostOS.i
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-06 20:12:03 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-06 20:12:03 +0000
commit9e6d35490a6542f9c97607f93c2ef8ca8e03cbcc (patch)
treedd2a1ddf0476664c2b823409c36cbccd52662ca7 /scripts/interface/SBHostOS.i
parent3bd2e91faeb9eeec1aae82c64a3253afff551cfd (diff)
Notes
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