BRoster: Added ability to pass env on launch.

* Added BRoster::Private::Launch() that adds an additional parameter
  to pass a pointer to the environment of the launched app.
This commit is contained in:
Axel Dörfler
2015-07-22 20:44:03 +02:00
parent 06e0f8079f
commit fb7dad2b49
3 changed files with 22 additions and 10 deletions
+6
View File
@@ -28,6 +28,12 @@ class BRoster::Private {
status_t SendTo(BMessage *message, BMessage *reply, bool mime);
bool IsMessengerValid(bool mime) const;
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)
{ return fRoster->_LaunchApp(mimeType, ref, messageList, argc,
args, environment, appTeam); }
status_t ShutDown(bool reboot, bool confirm, bool synchronous)
{ return fRoster->_ShutDown(reboot, confirm, synchronous); }