* Headers/Foundation/NSXPCConnection.h,

* Source/NSXPCConnection.m: Fix broken compilation on gcc.
This commit is contained in:
fredkiefer 2019-11-14 23:02:30 +01:00
parent 879bd3bb55
commit 1915415b48
3 changed files with 12 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2019-11-14 Fred Kiefer <fredkiefer@gmx.de>
* Headers/Foundation/NSXPCConnection.h,
* Source/NSXPCConnection.m: Fix broken compilation on gcc.
2019-11-12 Richard Frith-Macdonald <rfm@gnu.org>
* NSTimeZones/NSTimeZones.tar: updated to latest info

View file

@ -34,13 +34,13 @@
extern "C" {
#endif
@class NSMutableDictionary, NSString, NSOperationQueue, NSSet<ObjectType>, NSLock, NSError;
@class NSMutableDictionary, NSString, NSOperationQueue, NSSet, NSLock, NSError;
@class NSXPCConnection, NSXPCListener, NSXPCInterface, NSXPCListenerEndpoint;
@protocol NSXPCListenerDelegate;
DEFINE_BLOCK_TYPE(GSXPCProxyErrorHandler, void, NSError *);
DEFINE_BLOCK_TYPE(GSXPCInterruptionHandler, void, void);
DEFINE_BLOCK_TYPE(GSXPCInvalidationHandler, void, void);
DEFINE_BLOCK_TYPE_NO_ARGS(GSXPCInterruptionHandler, void);
DEFINE_BLOCK_TYPE_NO_ARGS(GSXPCInvalidationHandler, void);
@protocol NSXPCProxyCreating
@ -83,9 +83,9 @@ typedef NSUInteger NSXPCConnectionOptions;
- (id) remoteObjectProxy;
- (void) setRemoteObjectProxy: (id)remoteObjectProxy;
- (id) remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
- (id) remoteObjectProxyWithErrorHandler:(GSXPCProxyErrorHandler)handler;
- (id) synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
- (id) synchronousRemoteObjectProxyWithErrorHandler:(GSXPCProxyErrorHandler)handler;
- (GSXPCInterruptionHandler) interruptionHandler;
- (void) setInterruptionHandler: (GSXPCInterruptionHandler)handler;

View file

@ -87,12 +87,12 @@
{
}
- (id) remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler
- (id) remoteObjectProxyWithErrorHandler:(GSXPCProxyErrorHandler)handler
{
return nil;
}
- (id) synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler
- (id) synchronousRemoteObjectProxyWithErrorHandler:(GSXPCProxyErrorHandler)handler
{
return nil;
}