| FFmpegKit iOS / macOS / tvOS API 6.0

Loading...
Searching...
No Matches
ReturnCode.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Taner Sener
3 *
4 * This file is part of FFmpegKit.
5 *
6 * FFmpegKit is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * FFmpegKit is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General License
17 * along with FFmpegKit. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef FFMPEG_KIT_RETURN_CODE_H
21#define FFMPEG_KIT_RETURN_CODE_H
22
23#import <Foundation/Foundation.h>
24
25 typedef NS_ENUM(NSUInteger, ReturnCodeEnum) {
26 ReturnCodeSuccess = 0,
27 ReturnCodeCancel = 255
28};
29
30@interface ReturnCode : NSObject
31
32- (instancetype)init:(int)value;
33
34+ (BOOL)isSuccess:(ReturnCode*)value;
35
36+ (BOOL)isCancel:(ReturnCode*)value;
37
38- (int)getValue;
39
40- (BOOL)isValueSuccess;
41
42- (BOOL)isValueError;
43
44- (BOOL)isValueCancel;
45
46@end
47
48#endif // FFMPEG_KIT_RETURN_CODE_H
NS_ENUM
typedef NS_ENUM(NSUInteger, ReturnCodeEnum)
Definition ReturnCode.h:25
int
int
Definition fftools_ffmpeg_filter.c:180
ReturnCode
Definition ReturnCode.h:31
-[ReturnCode isValueSuccess]
BOOL isValueSuccess()
Definition ReturnCode.m:47
-[ReturnCode isValueCancel]
BOOL isValueCancel()
Definition ReturnCode.m:55
-[ReturnCode isValueError]
BOOL isValueError()
Definition ReturnCode.m:51
-[ReturnCode getValue]
int getValue()
Definition ReturnCode.m:43