2004-03-03 10:51:09 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2004-03-03 10:51:09 +03:00
|
|
|
|
2009-03-10 00:27:48 +03:00
|
|
|
#ifndef MacLaunchHelper_h_
|
|
|
|
#define MacLaunchHelper_h_
|
2004-03-03 10:51:09 +03:00
|
|
|
|
2013-07-30 18:25:31 +04:00
|
|
|
#include <stdint.h>
|
2013-01-10 20:19:36 +04:00
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2004-06-18 01:23:51 +04:00
|
|
|
extern "C" {
|
2016-09-01 01:56:48 +03:00
|
|
|
/**
|
|
|
|
* Passing an aPid parameter to LaunchChildMac will wait for the launched
|
|
|
|
* process to terminate. When the process terminates, aPid will be set to the
|
|
|
|
* pid of the terminated process to confirm that it executed successfully.
|
|
|
|
*/
|
2016-09-01 01:56:45 +03:00
|
|
|
void LaunchChildMac(int aArgc, char** aArgv, pid_t* aPid = 0);
|
|
|
|
bool LaunchElevatedUpdate(int aArgc, char** aArgv, pid_t* aPid = 0);
|
2004-06-18 01:23:51 +04:00
|
|
|
}
|
2004-03-03 10:51:09 +03:00
|
|
|
|
2004-06-18 01:23:51 +04:00
|
|
|
#endif
|