diff options
Diffstat (limited to 'macosx/HandBrakeXPCService')
-rw-r--r-- | macosx/HandBrakeXPCService/HBRemoteCoreProtocol.h | 4 | ||||
-rw-r--r-- | macosx/HandBrakeXPCService/HandBrakeXPCService.h | 5 | ||||
-rw-r--r-- | macosx/HandBrakeXPCService/HandBrakeXPCService.m | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/macosx/HandBrakeXPCService/HBRemoteCoreProtocol.h b/macosx/HandBrakeXPCService/HBRemoteCoreProtocol.h index e55d1ee04..15843007a 100644 --- a/macosx/HandBrakeXPCService/HBRemoteCoreProtocol.h +++ b/macosx/HandBrakeXPCService/HBRemoteCoreProtocol.h @@ -6,6 +6,8 @@ @import HandBrakeKit; +NS_ASSUME_NONNULL_BEGIN + @protocol HBRemoteCoreProtocol - (void)setDVDNav:(BOOL)enabled; @@ -41,3 +43,5 @@ @end +NS_ASSUME_NONNULL_END + diff --git a/macosx/HandBrakeXPCService/HandBrakeXPCService.h b/macosx/HandBrakeXPCService/HandBrakeXPCService.h index d7a084bd0..7d645e602 100644 --- a/macosx/HandBrakeXPCService/HandBrakeXPCService.h +++ b/macosx/HandBrakeXPCService/HandBrakeXPCService.h @@ -5,9 +5,14 @@ #import <Foundation/Foundation.h> #import "HBRemoteCoreProtocol.h" +NS_ASSUME_NONNULL_BEGIN + @interface HandBrakeXPCService : NSObject <HBRemoteCoreProtocol> - (instancetype)init NS_UNAVAILABLE; - (instancetype)initWithConnection:(NSXPCConnection *)connection; @end + +NS_ASSUME_NONNULL_END + diff --git a/macosx/HandBrakeXPCService/HandBrakeXPCService.m b/macosx/HandBrakeXPCService/HandBrakeXPCService.m index 366326b69..8bae39845 100644 --- a/macosx/HandBrakeXPCService/HandBrakeXPCService.m +++ b/macosx/HandBrakeXPCService/HandBrakeXPCService.m @@ -149,7 +149,7 @@ static void *HandBrakeXPCServiceContext = &HandBrakeXPCServiceContext; }); } - - (void)encodeJob:(HBJob *)job withReply:(void (^)(HBCoreResult))reply; + - (void)encodeJob:(HBJob *)job withReply:(void (^)(HBCoreResult))reply { dispatch_sync(_queue, ^{ void (^progressHandler)(HBState state, HBProgress progress, NSString *info) = ^(HBState state, HBProgress progress, NSString *info) |