api: generate stubs for new classes

Generate class stubs (without any method definition) for
NSFileCoordinator, NSFilePresenter, NSFileVersion and NSURLSession.
This commit is contained in:
Daniel Ferreira 2017-06-21 10:03:43 +10:00 committed by Ivan Vučica
parent e2831f34c1
commit 7636967f30
9 changed files with 104 additions and 0 deletions

View file

@ -64,8 +64,11 @@
#import <Foundation/NSError.h> #import <Foundation/NSError.h>
#import <Foundation/NSException.h> #import <Foundation/NSException.h>
#import <Foundation/NSExpression.h> #import <Foundation/NSExpression.h>
#import <Foundation/NSFileCoordinator.h>
#import <Foundation/NSFileHandle.h> #import <Foundation/NSFileHandle.h>
#import <Foundation/NSFileManager.h> #import <Foundation/NSFileManager.h>
#import <Foundation/NSFilePresenter.h>
#import <Foundation/NSFileVersion.h>
#import <Foundation/NSFormatter.h> #import <Foundation/NSFormatter.h>
#import <Foundation/NSGarbageCollector.h> #import <Foundation/NSGarbageCollector.h>
#import <Foundation/NSGeometry.h> #import <Foundation/NSGeometry.h>
@ -132,6 +135,7 @@
#import <Foundation/NSURLProtocol.h> #import <Foundation/NSURLProtocol.h>
#import <Foundation/NSURLRequest.h> #import <Foundation/NSURLRequest.h>
#import <Foundation/NSURLResponse.h> #import <Foundation/NSURLResponse.h>
#import <Foundation/NSURLSession.h>
#import <Foundation/NSUserDefaults.h> #import <Foundation/NSUserDefaults.h>
#import <Foundation/NSUserNotification.h> #import <Foundation/NSUserNotification.h>
#import <Foundation/NSUUID.h> #import <Foundation/NSUUID.h>

View file

@ -0,0 +1,15 @@
#ifndef __NSFileCoordinator_h_GNUSTEP_BASE_INCLUDE
#define __NSFileCoordinator_h_GNUSTEP_BASE_INCLUDE
#import <Foundation/NSObject.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7,GS_API_LATEST)
@interface NSFileAccessIntent : NSObject
@end
@interface NSFileCoordinator : NSObject
@end
#endif
#endif

View file

@ -0,0 +1,11 @@
#ifndef __NSFileCoordinator_h_GNUSTEP_BASE_INCLUDE
#define __NSFileCoordinator_h_GNUSTEP_BASE_INCLUDE
#import <Foundation/NSObject.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7,GS_API_LATEST)
@protocol NSFilePresenter <NSObject>
@end
#endif
#endif

View file

@ -0,0 +1,12 @@
#ifndef __NSFileVersion_h_GNUSTEP_BASE_INCLUDE
#define __NSFileVersion_h_GNUSTEP_BASE_INCLUDE
#import <Foundation/NSObject.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7,GS_API_LATEST)
@interface NSFileVersion : NSObject
@end
#endif
#endif

View file

@ -0,0 +1,40 @@
#ifndef __NSURLSession_h_GNUSTEP_BASE_INCLUDE
#define __NSURLSession_h_GNUSTEP_BASE_INCLUDE
#import <Foundation/NSObject.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_9,GS_API_LATEST)
@protocol NSURLSessionDelegate;
@protocol NSURLSessionTaskDelegate;
@interface NSURLSession : NSObject
@end
@interface NSURLSessionConfiguration : NSObject <NSCopying>
@end
@interface NSURLSessionTask : NSObject <NSCopying>
@end
@interface NSURLSessionDataTask : NSURLSessionTask
@end
@interface NSURLSessionUploadTask : NSURLSessionDataTask
@end
@interface NSURLSessionDownloadTask : NSURLSessionTask
@end
#if OS_API_VERSION(MAC_OS_X_VERSION_10_11,GS_API_LATEST)
@interface NSURLSessionStreamTask : NSURLSessionTask
@end
#endif
@protocol NSURLSessionDelegate <NSObject>
@end
@protocol NSURLSessionTaskDelegate <NSURLSessionDelegate>
@end
#endif
#endif

View file

@ -219,8 +219,10 @@ NSDistributedNotificationCenter.m \
NSEnumerator.m \ NSEnumerator.m \
NSError.m \ NSError.m \
NSException.m \ NSException.m \
NSFileCoordinator.m \
NSFileHandle.m \ NSFileHandle.m \
NSFileManager.m \ NSFileManager.m \
NSFileVersion.m \
NSFormatter.m \ NSFormatter.m \
NSGarbageCollector.m \ NSGarbageCollector.m \
NSGeometry.m \ NSGeometry.m \
@ -286,6 +288,7 @@ NSTimeZone.m \
NSUnarchiver.m \ NSUnarchiver.m \
NSUndoManager.m \ NSUndoManager.m \
NSURL.m \ NSURL.m \
NSURLSession.m \
NSURLAuthenticationChallenge.m \ NSURLAuthenticationChallenge.m \
NSURLCache.m \ NSURLCache.m \
NSURLCredential.m \ NSURLCredential.m \
@ -389,8 +392,11 @@ NSError.h \
NSErrorRecoveryAttempting.h \ NSErrorRecoveryAttempting.h \
NSException.h \ NSException.h \
NSExpression.h \ NSExpression.h \
NSFileCoordinator.h \
NSFileHandle.h \ NSFileHandle.h \
NSFileManager.h \ NSFileManager.h \
NSFilePresenter.h \
NSFileVersion.h \
NSFormatter.h \ NSFormatter.h \
NSGarbageCollector.h \ NSGarbageCollector.h \
NSGeometry.h \ NSGeometry.h \
@ -461,6 +467,7 @@ NSURLProtectionSpace.h \
NSURLProtocol.h \ NSURLProtocol.h \
NSURLRequest.h \ NSURLRequest.h \
NSURLResponse.h \ NSURLResponse.h \
NSURLSession.h \
NSUserDefaults.h \ NSUserDefaults.h \
NSUserNotification.h \ NSUserNotification.h \
NSUtilities.h \ NSUtilities.h \

View file

@ -0,0 +1,7 @@
#import <Foundation/NSFileCoordinator.h>
@implementation NSFileAccessIntent
@end
@implementation NSFileCoordinator
@end

4
Source/NSFileVersion.m Normal file
View file

@ -0,0 +1,4 @@
#include <Foundation/NSFileVersion.h>
@implementation NSFileVersion
@end

4
Source/NSURLSession.m Normal file
View file

@ -0,0 +1,4 @@
#import <Foundation/NSURLSession.h>
@implementation NSURLSession
@end