diff options
author | Damiano Galassi <[email protected]> | 2019-03-10 14:04:51 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-03-12 11:42:50 +0100 |
commit | e6a0642d20d1136947099bd47dc70cd5a0f55a51 (patch) | |
tree | 6a527c24d3b0b22e3d9aedd88f9e2c8aa6b71485 /macosx/Sparkle/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h | |
parent | 9cd1ac3096533af12b4a144bdaefc9c3d89d526c (diff) |
MacGui: use ui-separation-and-xpc Sparkle branch.
Diffstat (limited to 'macosx/Sparkle/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h')
-rwxr-xr-x | macosx/Sparkle/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/macosx/Sparkle/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h b/macosx/Sparkle/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h new file mode 100755 index 000000000..afa11f7c2 --- /dev/null +++ b/macosx/Sparkle/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h @@ -0,0 +1,38 @@ +// +// SUVersionComparisonProtocol.h +// Sparkle +// +// Created by Andy Matuschak on 12/21/07. +// Copyright 2007 Andy Matuschak. All rights reserved. +// + +#ifndef SUVERSIONCOMPARISONPROTOCOL_H +#define SUVERSIONCOMPARISONPROTOCOL_H + +#if __has_feature(modules) +@import Foundation; +#else +#import <Foundation/Foundation.h> +#endif + +#import <Sparkle/SUExport.h> + +NS_ASSUME_NONNULL_BEGIN + +/*! + Provides version comparison facilities for Sparkle. +*/ +@protocol SUVersionComparison + +/*! + An abstract method to compare two version strings. + + Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, + and NSOrderedSame if they are equivalent. +*/ +- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; // *** MAY BE CALLED ON NON-MAIN THREAD! + +@end + +NS_ASSUME_NONNULL_END +#endif |