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/. */ 5 6 #ifndef MacLaunchHelper_h_ 7 #define MacLaunchHelper_h_ 8 9 #include <stdint.h> 10 11 #include <unistd.h> 12 13 extern "C" { 14 /** 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. 18 */ 19 void LaunchChildMac(int aArgc, char** aArgv, pid_t* aPid = 0); 20 bool LaunchElevatedUpdate(int aArgc, char** aArgv, pid_t* aPid = 0); 21 } 22 23 #endif 24