summaryrefslogtreecommitdiffstats
path: root/macosx/NSDictionary+HBAdditions.h
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-02-26 12:06:37 +0100
committerDamiano Galassi <[email protected]>2016-02-26 12:06:37 +0100
commit5764ff3816214014c822ddf3c8099ec3e5f69b61 (patch)
tree16369dca977e61ec8173efd62fc8b4a25f8625d4 /macosx/NSDictionary+HBAdditions.h
parentc3c1f6b8f4464c98369a2a127f771399d86c25ef (diff)
MacGui: add a NSDictionary extension to convert from and to hb_dict_t.
Diffstat (limited to 'macosx/NSDictionary+HBAdditions.h')
-rw-r--r--macosx/NSDictionary+HBAdditions.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/macosx/NSDictionary+HBAdditions.h b/macosx/NSDictionary+HBAdditions.h
new file mode 100644
index 000000000..974739b9f
--- /dev/null
+++ b/macosx/NSDictionary+HBAdditions.h
@@ -0,0 +1,19 @@
+/* NSDictionary+HBAdditions.h $
+
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr/>.
+ It may be used under the terms of the GNU General Public License. */
+
+#import <Foundation/Foundation.h>
+#include "hb_dict.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface NSDictionary (HBAddtions)
+
+- (instancetype)initWithHBDict:(const hb_dict_t *)dict;
+- (hb_dict_t *)hb_dictValue;
+
+@end
+
+NS_ASSUME_NONNULL_END