summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2015-09-30 07:47:00 +0200
committerDamiano Galassi <[email protected]>2015-09-30 07:47:00 +0200
commitc667e5ae33ce3cb13d24925fe63e1e286192af5f (patch)
tree2b235c208c8ff36709bd30e92d30ec96a59b42f1 /macosx/HBCore.h
parentc5360d65dfec773d87735b6db0d012df4045bd04 (diff)
MacGui: add a way to differentiate a cancelled scan/encoded from a failed scan/encode
Diffstat (limited to 'macosx/HBCore.h')
-rw-r--r--macosx/HBCore.h9
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.