10 #ifndef LLDB_SBPlatform_h_
11 #define LLDB_SBPlatform_h_
17 struct PlatformConnectOptions;
18 struct PlatformShellCommand;
36 void SetURL(
const char *url);
38 bool GetRsyncEnabled();
40 void EnableRsync(
const char *options,
const char *remote_path_prefix,
41 bool omit_remote_hostname);
45 const char *GetLocalCacheDirectory();
47 void SetLocalCacheDirectory(
const char *path);
63 const char *GetCommand();
65 void SetCommand(
const char *shell_command);
67 const char *GetWorkingDirectory();
69 void SetWorkingDirectory(
const char *path);
71 uint32_t GetTimeoutSeconds();
73 void SetTimeoutSeconds(uint32_t sec);
79 const char *GetOutput();
99 const char *GetWorkingDirectory();
101 bool SetWorkingDirectory(
const char *path);
103 const char *GetName();
107 void DisconnectRemote();
114 const char *GetTriple();
116 const char *GetHostname();
118 const char *GetOSBuild();
120 const char *GetOSDescription();
122 uint32_t GetOSMajorVersion();
124 uint32_t GetOSMinorVersion();
126 uint32_t GetOSUpdateVersion();
138 SBError Kill(
const lldb::pid_t pid);
141 MakeDirectory(
const char *path,
142 uint32_t file_permissions = eFilePermissionsDirectoryDefault);
144 uint32_t GetFilePermissions(
const char *path);
146 SBError SetFilePermissions(
const char *path, uint32_t file_permissions);
154 lldb::PlatformSP GetSP()
const;
156 void SetSP(
const lldb::PlatformSP &platform_sp);
159 const std::function<lldb_private::Error(
const lldb::PlatformSP &)> &func);
166 #endif // LLDB_SBPlatform_h_
class LLDB_API SBLaunchInfo