Bug 1885602 - Part 4: Implement navigating to the settings from the menu header for...
[gecko.git] / toolkit / xre / MacLaunchHelper.h
bloba4a8fb16661a0ecd73898c0356809d8fd0ef5a40
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_
9 #include <stdint.h>
11 #include <unistd.h>
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.
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();
25 #endif