diff options
Diffstat (limited to 'macosx/HBCore.h')
-rw-r--r-- | macosx/HBCore.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/macosx/HBCore.h b/macosx/HBCore.h index c8817b220..36335114e 100644 --- a/macosx/HBCore.h +++ b/macosx/HBCore.h @@ -25,8 +25,15 @@ typedef NS_ENUM(NSUInteger, HBState) { HBStateSearching = HB_STATE_SEARCHING ///< HB is searching }; +// These constants specify the result of a scan or encode. +typedef NS_ENUM(NSUInteger, HBCoreResult) { + HBCoreResultDone, + HBCoreResultCancelled, + HBCoreResultFailed, +}; + typedef void (^HBCoreProgressHandler)(HBState state, hb_state_t hb_state); -typedef void (^HBCoreCompletionHandler)(BOOL success); +typedef void (^HBCoreCompletionHandler)(HBCoreResult result); /** * HBCore is an Objective-C interface to the low-level HandBrake library. |