-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy patherrorStatus.h
More file actions
58 lines (51 loc) · 2.71 KB
/
errorStatus.h
File metadata and controls
58 lines (51 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// SPDX-License-Identifier: Apache-2.0
// Copyright Contributors to the OpenTimelineIO project
#pragma once
#include "serializableObject.h"
#ifdef __cplusplus
# define OTIO_API extern "C"
#else
# define OTIO_API
#endif
struct OTIOErrorStatus;
typedef struct OTIOErrorStatus OTIOErrorStatus;
typedef struct OTIOSerializableObject OTIOSerializableObject;
typedef enum
{
OTIO_ErrorStatus_Outcome_OK = 0,
OTIO_ErrorStatus_Outcome_NOT_IMPLEMENTED = 1,
OTIO_ErrorStatus_Outcome_UNRESOLVED_OBJECT_REFERENCE = 2,
OTIO_ErrorStatus_Outcome_DUPLICATE_OBJECT_REFERENCE = 3,
OTIO_ErrorStatus_Outcome_MALFORMED_SCHEMA = 4,
OTIO_ErrorStatus_Outcome_JSON_PARSE_ERROR = 5,
OTIO_ErrorStatus_Outcome_CHILD_ALREADY_PARENTED = 6,
OTIO_ErrorStatus_Outcome_FILE_OPEN_FAILED = 7,
OTIO_ErrorStatus_Outcome_FILE_WRITE_FAILED = 8,
OTIO_ErrorStatus_Outcome_SCHEMA_ALREADY_REGISTERED = 9,
OTIO_ErrorStatus_Outcome_SCHEMA_NOT_REGISTERED = 10,
OTIO_ErrorStatus_Outcome_SCHEMA_VERSION_UNSUPPORTED = 11,
OTIO_ErrorStatus_Outcome_KEY_NOT_FOUND = 12,
OTIO_ErrorStatus_Outcome_ILLEGAL_INDEX = 13,
OTIO_ErrorStatus_Outcome_TYPE_MISMATCH = 14,
OTIO_ErrorStatus_Outcome_INTERNAL_ERROR = 15,
OTIO_ErrorStatus_Outcome_NOT_AN_ITEM = 16,
OTIO_ErrorStatus_Outcome_NOT_A_CHILD_OF = 17,
OTIO_ErrorStatus_Outcome_NOT_A_CHILD = 18,
OTIO_ErrorStatus_Outcome_NOT_DESCENDED_FROM = 19,
OTIO_ErrorStatus_Outcome_CANNOT_COMPUTE_AVAILABLE_RANGE = 20,
OTIO_ErrorStatus_Outcome_INVALID_TIME_RANGE = 21,
OTIO_ErrorStatus_Outcome_OBJECT_WITHOUT_DURATION = 22,
OTIO_ErrorStatus_Outcome_CANNOT_TRIM_TRANSITION = 23,
} OTIO_ErrorStatus_Outcome_;
typedef int OTIO_ErrorStatus_Outcome;
OTIO_API OTIOErrorStatus* OTIOErrorStatus_create();
OTIO_API OTIOErrorStatus* OTIOErrorStatus_create_with_outcome(OTIO_ErrorStatus_Outcome in_outcome);
OTIO_API OTIOErrorStatus* OTIOErrorStatus_create_with_outcome_details_serializable_object(
OTIO_ErrorStatus_Outcome in_outcome,
const char* in_details,
OTIOSerializableObject* object);
OTIO_API const char* OTIOErrorStatus_outcome_to_string(OTIO_ErrorStatus_Outcome var1);
OTIO_API OTIO_ErrorStatus_Outcome OTIOErrorStatus_get_outcome(OTIOErrorStatus* self);
OTIO_API void OTIOErrorStatus_destroy(OTIOErrorStatus* self);
OTIO_API const char* OTIOErrorStatus_details(OTIOErrorStatus* self);
OTIO_API const char* OTIOErrorStatus_full_description(OTIOErrorStatus* self);