blob: 24f3f853f198f3934fb64f9f9cc2f71c231a3c43 [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);
Enrico Granatac11b1012015-02-10 03:16:55 +000094
95 bool
Enrico Granatab38ef8c2015-02-20 22:20:30 +000096 GetShellExpandArguments ();
Enrico Granatac11b1012015-02-10 03:16:55 +000097
98 void
Enrico Granatab38ef8c2015-02-20 22:20:30 +000099 SetShellExpandArguments (bool expand);
Oleksiy Vyalov1ef7b2c2015-02-04 23:19:15 +0000100
101 uint32_t
102 GetResumeCount ();
103
104 void
105 SetResumeCount (uint32_t c);
106
107 bool
108 AddCloseFileAction (int fd);
109
110 bool
111 AddDuplicateFileAction (int fd, int dup_fd);
112
113 bool
114 AddOpenFileAction (int fd, const char *path, bool read, bool write);
115
116 bool
117 AddSuppressFileAction (int fd, bool read, bool write);
118
119 void
120 SetLaunchEventData (const char *data);
121
122 const char *
123 GetLaunchEventData () const;
124
125 bool
126 GetDetachOnError() const;
127
128 void
129 SetDetachOnError(bool enable);
130};
131
132} // namespace lldb