BRoster: Add launchSuspended option to _LaunchApp().

It allows to launch the app, but keep its main thread suspended instead
of automatically resuming it.

Also add appThread argument which allows to retrieve the main thread of
the launched team.
This commit is contained in:
Michael Lotz
2015-08-28 22:52:50 +02:00
parent df5aeb6dda
commit 5b9f6b5485
4 changed files with 30 additions and 14 deletions
+3 -2
View File
@@ -30,9 +30,10 @@ class BRoster::Private {
status_t Launch(const char* mimeType, const entry_ref* ref,
const BList* messageList, int argc, const char* const* args,
const char** environment, team_id* appTeam)
const char** environment, team_id* appTeam,
thread_id* appThread, bool launchSuspended)
{ return fRoster->_LaunchApp(mimeType, ref, messageList, argc,
args, environment, appTeam); }
args, environment, appTeam, appThread, launchSuspended); }
status_t ShutDown(bool reboot, bool confirm, bool synchronous)
{ return fRoster->_ShutDown(reboot, confirm, synchronous); }