blob: fa6b8e76213ca046ea092c2f31b8b383610f1864 [file] [log] [blame]
Oleksiy Vyalov1ef7b2c2015-02-04 23:19:15 +00001//===-- SWIG Interface for SBLaunchInfo--------------------------*- 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
10namespace lldb {
11
12class SBLaunchInfo
13{
14public:
15 SBLaunchInfo (const char **argv);
16
17 pid_t
18 GetProcessID();
19
20 uint32_t
21 GetUserID();
22
23 uint32_t
24 GetGroupID();
25
26 bool
27 UserIDIsValid ();
28
29 bool
30 GroupIDIsValid ();
31
32 void
33 SetUserID (uint32_t uid);
34
35 void
36 SetGroupID (uint32_t gid);
37
38 lldb::SBFileSpec
39 GetExecutableFile ();
40
41 void
42 SetExecutableFile (lldb::SBFileSpec exe_file, bool add_as_first_arg);
43
44 lldb::SBListener
45 GetListener ();
46
47 void
48 SetListener (lldb::SBListener &listener);
49
50 uint32_t
51 GetNumArguments ();
52
53 const char *
54 GetArgumentAtIndex (uint32_t idx);
55
56 void
57 SetArguments (const char **argv, bool append);
58
59 uint32_t
60 GetNumEnvironmentEntries ();
61
62 const char *
63 GetEnvironmentEntryAtIndex (uint32_t idx);
64
65 void
66 SetEnvironmentEntries (const char **envp, bool append);
67
68 void
69 Clear ();
70
71 const char *
72 GetWorkingDirectory () const;
73
74 void
75 SetWorkingDirectory (const char *working_dir);
76
77 uint32_t
78 GetLaunchFlags ();
79
80 void
81 SetLaunchFlags (uint32_t flags);
82
83 const char *
84 GetProcessPluginName ();
85
86 void
87 SetProcessPluginName (const char *plugin_name);
88
89 const char *
90 GetShell ();
91
92 void
93 SetShell (const char * path);
94
95 uint32_t
96 GetResumeCount ();
97
98 void
99 SetResumeCount (uint32_t c);
100
101 bool
102 AddCloseFileAction (int fd);
103
104 bool
105 AddDuplicateFileAction (int fd, int dup_fd);
106
107 bool
108 AddOpenFileAction (int fd, const char *path, bool read, bool write);
109
110 bool
111 AddSuppressFileAction (int fd, bool read, bool write);
112
113 void
114 SetLaunchEventData (const char *data);
115
116 const char *
117 GetLaunchEventData () const;
118
119 bool
120 GetDetachOnError() const;
121
122 void
123 SetDetachOnError(bool enable);
124};
125
126} // namespace lldb