summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.h
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-05-30 07:17:22 +0000
committerritsuka <[email protected]>2015-05-30 07:17:22 +0000
commit2837048a59ac5beab0b3428ca89c86857765de0a (patch)
tree15417d195f7223d85fac22560479717dfda31101 /macosx/HBCore.h
parent93fb333304b2493a50623b04caac95b53eca3240 (diff)
MacGui: add nullability annotations to the headers and use weak where is possible.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7244 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBCore.h')
-rw-r--r--macosx/HBCore.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/macosx/HBCore.h b/macosx/HBCore.h
index 58ecb43ca..1d7a4e279 100644
--- a/macosx/HBCore.h
+++ b/macosx/HBCore.h
@@ -11,6 +11,8 @@
@class HBPicture;
@class HBTitle;
+NS_ASSUME_NONNULL_BEGIN
+
// These constants specify the current state of HBCore.
typedef NS_ENUM(NSUInteger, HBState) {
HBStateIdle = HB_STATE_IDLE, ///< HB is doing nothing
@@ -116,7 +118,7 @@ typedef void (^HBCoreCompletionHandler)(BOOL success);
/**
* An array of HBTitles found by the latest scan.
*/
-@property (nonatomic, readonly) NSArray *titles;
+@property (nonatomic, readonly, nullable) NSArray *titles;
/**
* This function converts an image created by libhb (specified via index)
@@ -129,10 +131,10 @@ typedef void (^HBCoreCompletionHandler)(BOOL success);
*
* @return a CGImageRef of the wanted image, NULL if the index is out of bounds.
*/
-- (CGImageRef)copyImageAtIndex:(NSUInteger)index
- forTitle:(HBTitle *)title
- pictureFrame:(HBPicture *)frame
- deinterlace:(BOOL)deinterlace CF_RETURNS_RETAINED;
+- (nullable CGImageRef)copyImageAtIndex:(NSUInteger)index
+ forTitle:(HBTitle *)title
+ pictureFrame:(HBPicture *)frame
+ deinterlace:(BOOL)deinterlace CF_RETURNS_RETAINED;
/**
* Initiates an asynchronous encode operation and returns immediately.
@@ -162,3 +164,5 @@ typedef void (^HBCoreCompletionHandler)(BOOL success);
- (void)resume;
@end
+
+NS_ASSUME_NONNULL_END