michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * nsIMacUtils: Generic globally-available Mac-specific utilities. michael@0: */ michael@0: michael@0: [scriptable, uuid(5E9072D7-FF95-455E-9466-8AF9841A72EC)] michael@0: interface nsIMacUtils : nsISupports michael@0: { michael@0: /** michael@0: * True when the main executable is a fat file supporting at least michael@0: * ppc and x86 (universal binary). michael@0: */ michael@0: readonly attribute boolean isUniversalBinary; michael@0: michael@0: /** michael@0: * Returns a string containing a list of architectures delimited michael@0: * by "-". Architecture sets are always in the same order: michael@0: * ppc > i386 > ppc64 > x86_64 > (future additions) michael@0: */ michael@0: readonly attribute AString architecturesInBinary; michael@0: michael@0: /** michael@0: * True when running under binary translation (Rosetta). michael@0: */ michael@0: readonly attribute boolean isTranslated; michael@0: };