diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 30f16159..ccc5a69b 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -63,6 +63,7 @@ 55C14F7E136F005000649790 /* SUPlainInstallerInternals.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F8E509C4CE3C00B25A18 /* SUPlainInstallerInternals.m */; }; 55C14F9A136F045400649790 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; 55C14FC7136F05E100649790 /* Sparkle.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8220A321A7F00D8810D /* Sparkle.strings */; }; + 55C56926198D641F006B70AB /* SUBinCompat.c in Sources */ = {isa = PBXBuildFile; fileRef = 55C56925198D641F006B70AB /* SUBinCompat.c */; }; 5AF9DC3C1981DBEE001EA135 /* SUDSAVerifierTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */; }; 5D06E8D80FD68C8E005AE3F6 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; }; 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; settings = {COMPILER_FLAGS = "-w"; }; }; @@ -363,6 +364,7 @@ 55C14F05136EF6DB00649790 /* SULog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SULog.m; sourceTree = ""; }; 55C14F0E136EF73600649790 /* Autoupdate.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Autoupdate.pch; sourceTree = ""; }; 55C14F31136EFC2400649790 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; + 55C56925198D641F006B70AB /* SUBinCompat.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SUBinCompat.c; sourceTree = ""; }; 5AEF45D9189D1CC90030D7DC /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Sparkle.strings; sourceTree = ""; }; 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUDSAVerifierTest.m; path = Tests/SUDSAVerifierTest.m; sourceTree = ""; }; 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = BinaryDelta; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -827,6 +829,7 @@ 61EF67550E25B58D00F754E0 /* SUHost.m */, 55C14F04136EF6DB00649790 /* SULog.h */, 55C14F05136EF6DB00649790 /* SULog.m */, + 55C56925198D641F006B70AB /* SUBinCompat.c */, ); includeInIndex = 1; name = "Other Sources"; @@ -1380,6 +1383,7 @@ 61B93C0A0DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m in Sources */, 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */, 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */, + 55C56926198D641F006B70AB /* SUBinCompat.c in Sources */, 61A2279D0D1CEE7600430CCD /* SUSystemProfiler.m in Sources */, 61B93A3D0DD02D7000DCD2F8 /* SUUIBasedUpdateDriver.m in Sources */, 61299A8E09CA790200B7442F /* SUUnarchiver.m in Sources */, diff --git a/Sparkle/SUBinCompat.c b/Sparkle/SUBinCompat.c new file mode 100644 index 00000000..93376fc1 --- /dev/null +++ b/Sparkle/SUBinCompat.c @@ -0,0 +1,43 @@ +// +// SUBinCompat.c +// Sparkle +// +// Created by C.W. Betts on 8/2/14. +// Copyright (c) 2014 Sparkle Project. All rights reserved. +// Used to keep binary compatibility with older versions of Sparkle +// + +// No other headers are included, especially not the SUConstants header: +// The declarations here would conflict with the constants. +#include + + +extern OSStatus SUAppcastParseError; +extern OSStatus SUNoUpdateError; +extern OSStatus SUAppcastError; +extern OSStatus SURunningFromDiskImageError; +extern OSStatus SUTemporaryDirectoryError; +extern OSStatus SUUnarchivingError; +extern OSStatus SUSignatureError; +extern OSStatus SUFileCopyFailure; +extern OSStatus SUAuthenticationFailure; +extern OSStatus SUMissingUpdateError; +extern OSStatus SUMissingInstallerToolError; +extern OSStatus SURelaunchError; +extern OSStatus SUInstallationError; +extern OSStatus SUDowngradeError; + +OSStatus SUAppcastParseError = 1000; +OSStatus SUNoUpdateError = 1001; +OSStatus SUAppcastError = 1002; +OSStatus SURunningFromDiskImageError = 1003; +OSStatus SUTemporaryDirectoryError = 2000; +OSStatus SUUnarchivingError = 3000; +OSStatus SUSignatureError = 3001; +OSStatus SUFileCopyFailure = 4000; +OSStatus SUAuthenticationFailure = 4001; +OSStatus SUMissingUpdateError = 4002; +OSStatus SUMissingInstallerToolError = 4003; +OSStatus SURelaunchError = 4004; +OSStatus SUInstallationError = 4005; +OSStatus SUDowngradeError = 4006;