mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
This is now necessary for package type installations so we can know whether or not we should authenticate ahead of time. Of course, we also verify that the download contains the type of installation we expect (because the appcast is not very trusted).
28 lines
796 B
Objective-C
28 lines
796 B
Objective-C
//
|
|
// SUInstallerConnectionProtocol.h
|
|
// InstallerConnection
|
|
//
|
|
// Created by Mayur Pawashe on 7/9/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "SUInstallerCommunicationProtocol.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol SUInstallerConnectionProtocol <SUInstallerCommunicationProtocol>
|
|
|
|
// This method is declared in SUInstallerCommunicationProtocol too, but the XPC decoder on macOS 10.8 doesn't know that
|
|
- (void)handleMessageWithIdentifier:(int32_t)identifier data:(NSData *)data;
|
|
|
|
- (void)setInvalidationHandler:(void (^)(void))invalidationHandler;
|
|
|
|
- (void)setServiceName:(NSString *)serviceName hostPath:(NSString *)hostPath installationType:(NSString *)installationType;
|
|
|
|
- (void)invalidate;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|