1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef MacLaunchHelper_h_
7 #define MacLaunchHelper_h_
15 * Passing an aPid parameter to LaunchChildMac will wait for the launched
16 * process to terminate. When the process terminates, aPid will be set to the
17 * pid of the terminated process to confirm that it executed successfully.
19 void LaunchChildMac(int aArgc
, char** aArgv
, pid_t
* aPid
= 0);
20 bool LaunchElevatedUpdate(int aArgc
, char** aArgv
, pid_t
* aPid
= 0);
21 bool InstallPrivilegedHelper();
22 void AbortElevatedUpdate();