diff options
Diffstat (limited to 'macosx/NSJSONSerialization+HBAdditions.h')
-rw-r--r-- | macosx/NSJSONSerialization+HBAdditions.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/macosx/NSJSONSerialization+HBAdditions.h b/macosx/NSJSONSerialization+HBAdditions.h new file mode 100644 index 000000000..58bb47d98 --- /dev/null +++ b/macosx/NSJSONSerialization+HBAdditions.h @@ -0,0 +1,18 @@ +/* NSJSONSerialization+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> + +NS_ASSUME_NONNULL_BEGIN + +@interface NSJSONSerialization (HBAdditions) + ++ (nullable id)HB_JSONObjectWithUTF8String:(const char *)nullTerminatedCString options:(NSJSONReadingOptions)opt error:(NSError **)error; ++ (nullable NSString *)HB_StringWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError **)error; + +@end + +NS_ASSUME_NONNULL_END |