mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Add final files
This commit is contained in:
parent
2c1be24ac3
commit
fe22c1f998
5 changed files with 369 additions and 3 deletions
|
@ -31,6 +31,7 @@
|
|||
#import <objc/objc.h>
|
||||
|
||||
#import <Foundation/FoundationErrors.h>
|
||||
#import <Foundation/FoundationLegacySwiftCompatibility.h>
|
||||
#import <Foundation/NSObjCRuntime.h>
|
||||
#import <GNUstepBase/GSConfig.h>
|
||||
#import <Foundation/NSDebug.h>
|
||||
|
@ -187,6 +188,7 @@
|
|||
#import <Foundation/NSXMLNode.h>
|
||||
#import <Foundation/NSXMLNodeOptions.h>
|
||||
#import <Foundation/NSXMLParser.h>
|
||||
#import <Foundation/NSXPCConnection.h>
|
||||
#import <Foundation/NSZone.h>
|
||||
|
||||
#ifdef __has_include
|
||||
|
|
30
Headers/Foundation/FoundationLegacySwiftCompatibility.h
Normal file
30
Headers/Foundation/FoundationLegacySwiftCompatibility.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* Definition of header FoundationLegacySwiftCompatibility
|
||||
Copyright (C) 2019 Free Software Foundation, Inc.
|
||||
|
||||
By: Gregory Casamento <greg.casamento@gmail.com>
|
||||
Date: Tue Nov 12 23:50:29 EST 2019
|
||||
|
||||
This file is part of the GNUstep Library.
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free
|
||||
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02111 USA.
|
||||
*/
|
||||
|
||||
#ifndef _FoundationLegacySwiftCompatibility_h_GNUSTEP_BASE_INCLUDE
|
||||
#define _FoundationLegacySwiftCompatibility_h_GNUSTEP_BASE_INCLUDE
|
||||
|
||||
#include <Foundation/NSObjCRuntime.h>
|
||||
|
||||
#endif
|
|
@ -27,14 +27,131 @@
|
|||
|
||||
#include <Foundation/NSObject.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_Nov 12 2019, GS_API_LATEST)
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
|
||||
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@interface NSXPCConnection : NSObject
|
||||
@class NSMutableDictionary, NSString, NSOperationQueue, NSSet<ObjectType>, 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);
|
||||
|
||||
|
||||
@protocol NSXPCProxyCreating
|
||||
|
||||
- (id) remoteObjectProxy;
|
||||
|
||||
- (id) remoteObjectProxyWithErrorHandler: (GSXPCProxyErrorHandler)handler;
|
||||
|
||||
- (id) synchronousRemoteObjectProxyWithErrorHandler: (GSXPCProxyErrorHandler)handler;
|
||||
|
||||
@end
|
||||
|
||||
enum
|
||||
{
|
||||
NSXPCConnectionPrivileged = (1 << 12UL)
|
||||
};
|
||||
typedef NSUInteger NSXPCConnectionOptions;
|
||||
|
||||
@interface NSXPCConnection : NSObject <NSXPCProxyCreating>
|
||||
|
||||
- (instancetype)initWithServiceName:(NSString *)serviceName;
|
||||
|
||||
- (NSString *) serviceName;
|
||||
- (void) setServiceName: (NSString *)serviceName;
|
||||
|
||||
- (instancetype)initWithMachServiceName:(NSString *)name options:(NSXPCConnectionOptions)options;
|
||||
|
||||
- (instancetype)initWithListenerEndpoint:(NSXPCListenerEndpoint *)endpoint;
|
||||
|
||||
- (NSXPCListenerEndpoint *) endpoint;
|
||||
- (void) setEndpoint: (NSXPCListenerEndpoint *) endpoint;
|
||||
|
||||
- (NSXPCInterface *) exportedInterface;
|
||||
- (void) setExportInterface: (NSXPCInterface *)exportedInterface;
|
||||
|
||||
- (NSXPCInterface *) remoteObjectInterface;
|
||||
- (void) setRemoteObjectInterface: (NSXPCInterface *)remoteObjectInterface;
|
||||
|
||||
|
||||
- (id) remoteObjectProxy;
|
||||
- (void) setRemoteObjectProxy: (id)remoteObjectProxy;
|
||||
|
||||
- (id) remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
|
||||
|
||||
- (id) synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler;
|
||||
|
||||
- (GSXPCInterruptionHandler) interruptionHandler;
|
||||
- (void) setInterruptionHandler: (GSXPCInterruptionHandler)handler;
|
||||
|
||||
- (GSXPCInvalidationHandler) invalidationHandler;
|
||||
- (void) setInvalidationHandler: (GSXPCInvalidationHandler)handler;
|
||||
|
||||
- (void) resume;
|
||||
|
||||
- (void) suspend;
|
||||
|
||||
- (void) invalidate;
|
||||
|
||||
- (NSUInteger) auditSessionIdentifier;
|
||||
- (NSUInteger) processIdentifier;
|
||||
- (NSUInteger) effectiveUserIdentifier;
|
||||
- (NSUInteger) effectiveGroupIdentifier;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@interface NSXPCListener : NSObject
|
||||
|
||||
+ (NSXPCListener *) serviceListener;
|
||||
|
||||
+ (NSXPCListener *) anonymousListener;
|
||||
|
||||
- (instancetype) initWithMachServiceName:(NSString *)name;
|
||||
|
||||
- (id <NSXPCListenerDelegate>) delegate;
|
||||
- (void) setDelegate: (id <NSXPCListenerDelegate>) delegate;
|
||||
|
||||
- (NSXPCListenerEndpoint *) endpoint;
|
||||
- (void) setEndpoint: (NSXPCListenerEndpoint *)endpoint;
|
||||
|
||||
- (void) resume;
|
||||
|
||||
- (void) suspend;
|
||||
|
||||
- (void) invalidate;
|
||||
|
||||
@end
|
||||
|
||||
@protocol NSXPCListenerDelegate <NSObject>
|
||||
|
||||
- (BOOL) listener: (NSXPCListener *)listener shouldAcceptNewConnection: (NSXPCConnection *)newConnection;
|
||||
|
||||
@end
|
||||
|
||||
@interface NSXPCInterface : NSObject
|
||||
|
||||
+ (NSXPCInterface *) interfaceWithProtocol: (Protocol *)protocol;
|
||||
|
||||
- (Protocol *) protocol;
|
||||
- (void) setProtocol: (Protocol *)protocol;
|
||||
|
||||
- (void) setClasses: (NSSet *)classes forSelector: (SEL)sel argumentIndex: (NSUInteger)arg ofReply: (BOOL)ofReply;
|
||||
|
||||
- (NSSet *) classesForSelector: (SEL)sel argumentIndex: (NSUInteger)arg ofReply: (BOOL)ofReply;
|
||||
|
||||
- (void) setInterface: (NSXPCInterface *)ifc forSelector: (SEL)sel argumentIndex: (NSUInteger)arg ofReply: (BOOL)ofReply;
|
||||
|
||||
- (NSXPCInterface *) interfaceForSelector: (SEL)sel argumentIndex: (NSUInteger)arg ofReply: (BOOL)ofReply;
|
||||
|
||||
@end
|
||||
|
||||
@interface NSXPCListenerEndpoint : NSObject <NSCoding> // NSSecureCoding
|
||||
@end
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
|
@ -355,6 +355,7 @@ NSXMLDTDNode.m \
|
|||
NSXMLElement.m \
|
||||
NSXMLNode.m \
|
||||
NSXMLParser.m \
|
||||
NSXPCConnection.m \
|
||||
NSZone.m \
|
||||
externs.m \
|
||||
objc-load.m
|
||||
|
@ -566,6 +567,7 @@ NSXMLElement.h \
|
|||
NSXMLNode.h \
|
||||
NSXMLNodeOptions.h \
|
||||
NSXMLParser.h \
|
||||
NSXPCConnection.h \
|
||||
NSZone.h
|
||||
|
||||
HEADERS_INSTALL = \
|
||||
|
|
|
@ -23,8 +23,223 @@
|
|||
*/
|
||||
|
||||
#include <Foundation/NSXPCConnection.h>
|
||||
|
||||
|
||||
@implementation NSXPCConnection
|
||||
|
||||
- (instancetype)initWithServiceName:(NSString *)serviceName
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSString *) serviceName
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setServiceName: (NSString *)serviceName
|
||||
{
|
||||
}
|
||||
|
||||
- (instancetype)initWithMachServiceName:(NSString *)name options:(NSXPCConnectionOptions)options
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (instancetype)initWithListenerEndpoint:(NSXPCListenerEndpoint *)endpoint
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
||||
- (NSXPCListenerEndpoint *) endpoint
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setEndpoint: (NSXPCListenerEndpoint *) endpoint
|
||||
{
|
||||
}
|
||||
|
||||
- (NSXPCInterface *) exportedInterface
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setExportInterface: (NSXPCInterface *)exportedInterface
|
||||
{
|
||||
}
|
||||
|
||||
- (NSXPCInterface *) remoteObjectInterface
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setRemoteObjectInterface: (NSXPCInterface *)remoteObjectInterface
|
||||
{
|
||||
}
|
||||
|
||||
- (id) remoteObjectProxy
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setRemoteObjectProxy: (id)remoteObjectProxy
|
||||
{
|
||||
}
|
||||
|
||||
- (id) remoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id) synchronousRemoteObjectProxyWithErrorHandler:(void (^)(NSError *error))handler
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (GSXPCInterruptionHandler) interruptionHandler
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- (void) setInterruptionHandler: (GSXPCInterruptionHandler)handler
|
||||
{
|
||||
}
|
||||
|
||||
- (GSXPCInvalidationHandler) invalidationHandler
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- (void) setInvalidationHandler: (GSXPCInvalidationHandler)handler
|
||||
{
|
||||
}
|
||||
|
||||
- (void) resume
|
||||
{
|
||||
}
|
||||
|
||||
- (void) suspend
|
||||
{
|
||||
}
|
||||
|
||||
- (void) invalidate
|
||||
{
|
||||
}
|
||||
|
||||
- (NSUInteger) auditSessionIdentifier
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
- (NSUInteger) processIdentifier
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
- (NSUInteger) effectiveUserIdentifier
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
- (NSUInteger) effectiveGroupIdentifier
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation NSXPCListener
|
||||
|
||||
+ (NSXPCListener *) serviceListener
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
+ (NSXPCListener *) anonymousListener
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (instancetype) initWithMachServiceName:(NSString *)name
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id <NSXPCListenerDelegate>) delegate
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setDelegate: (id <NSXPCListenerDelegate>) delegate
|
||||
{
|
||||
}
|
||||
|
||||
- (NSXPCListenerEndpoint *) endpoint
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setEndpoint: (NSXPCListenerEndpoint *)endpoint
|
||||
{
|
||||
}
|
||||
|
||||
- (void) resume
|
||||
{
|
||||
}
|
||||
|
||||
- (void) suspend
|
||||
{
|
||||
}
|
||||
|
||||
- (void) invalidate
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSXPCInterface
|
||||
|
||||
+ (NSXPCInterface *) interfaceWithProtocol: (Protocol *)protocol
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (Protocol *) protocol
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setProtocol: (Protocol *)protocol
|
||||
{
|
||||
}
|
||||
|
||||
- (void) setClasses: (NSSet *)classes forSelector: (SEL)sel argumentIndex: (NSUInteger)arg ofReply: (BOOL)ofReply
|
||||
{
|
||||
}
|
||||
|
||||
- (NSSet *) classesForSelector: (SEL)sel argumentIndex: (NSUInteger)arg ofReply: (BOOL)ofReply
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setInterface: (NSXPCInterface *)ifc forSelector: (SEL)sel argumentIndex: (NSUInteger)arg ofReply: (BOOL)ofReply
|
||||
{
|
||||
}
|
||||
|
||||
- (NSXPCInterface *) interfaceForSelector: (SEL)sel argumentIndex: (NSUInteger)arg ofReply: (BOOL)ofReply
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSXPCListenerEndpoint
|
||||
|
||||
- (instancetype) initWithCoder: (NSCoder *)coder
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder *)coder
|
||||
{
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue