blob: cfa83cda965c3ace182e984a9d295f78ee6d64d5 (
plain)
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
|
#ifndef GSR_RECORDER_ERROR_H
#define GSR_RECORDER_ERROR_H
#ifdef __cplusplus
extern "C" {
#endif
/* The negated value of each error is the exit code that gpu-screen-recorder exits with */
typedef enum {
GSR_ERROR_OK = 0,
GSR_ERROR_GENERIC = -1,
GSR_ERROR_UNSUPPORTED = -2,
GSR_ERROR_CAPTURE_FAILED = -3,
GSR_ERROR_VIDEO_CODEC_QUERY_FAILED = -11,
GSR_ERROR_OPENGL_LOAD_FAILED = -22,
GSR_ERROR_AUDIO_DEVICE_NOT_FOUND = -50,
GSR_ERROR_MONITOR_NOT_FOUND = -51,
GSR_ERROR_NO_VIDEO_CODEC_AVAILABLE = -52,
GSR_ERROR_VIDEO_CODEC_RESOLUTION_UNSUPPORTED = -53,
GSR_ERROR_VIDEO_CODEC_UNSUPPORTED = -54
} gsr_error;
static inline int gsr_error_to_exit_code(int error) {
return error < 0 ? -error : 0;
}
#ifdef __cplusplus
}
#endif
#endif /* GSR_RECORDER_ERROR_H */
|