summaryrefslogtreecommitdiff
path: root/common/quicktime_win32/CGError.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/quicktime_win32/CGError.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/quicktime_win32/CGError.h')
-rw-r--r--common/quicktime_win32/CGError.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/common/quicktime_win32/CGError.h b/common/quicktime_win32/CGError.h
new file mode 100644
index 0000000..594a6b3
--- /dev/null
+++ b/common/quicktime_win32/CGError.h
@@ -0,0 +1,90 @@
+/*
+ File: CGError.h
+
+ Contains: CoreGraphics error codes
+
+ Version: QuickTime 7.3
+
+ Copyright: (c) 2007 (c) 2000-2001 by Apple Computer, Inc., all rights reserved.
+
+ Bugs?: For bug reports, consult the following page on
+ the World Wide Web:
+
+ http://developer.apple.com/bugreporter/
+
+*/
+
+#ifndef CGERROR_H_
+#define CGERROR_H_
+
+#ifndef __CGBASE__
+#include <CGBase.h>
+#endif
+
+
+
+
+#if PRAGMA_ONCE
+#pragma once
+#endif
+
+#if PRAGMA_IMPORT
+#pragma import on
+#endif
+
+#if PRAGMA_ENUM_ALWAYSINT
+ #if defined(__fourbyteints__) && !__fourbyteints__
+ #define __CGERROR__RESTORE_TWOBYTEINTS
+ #pragma fourbyteints on
+ #endif
+ #pragma enumsalwaysint on
+#elif PRAGMA_ENUM_OPTIONS
+ #pragma option enum=int
+#elif PRAGMA_ENUM_PACK
+ #if __option(pack_enums)
+ #define __CGERROR__RESTORE_PACKED_ENUMS
+ #pragma options(!pack_enums)
+ #endif
+#endif
+
+/* Types used for error and error handler */
+enum CGError {
+ kCGErrorSuccess = 0,
+ kCGErrorFirst = 1000,
+ kCGErrorFailure = kCGErrorFirst,
+ kCGErrorIllegalArgument = 1001,
+ kCGErrorInvalidConnection = 1002,
+ kCGErrorInvalidContext = 1003,
+ kCGErrorCannotComplete = 1004,
+ kCGErrorNameTooLong = 1005,
+ kCGErrorNotImplemented = 1006,
+ kCGErrorRangeCheck = 1007,
+ kCGErrorTypeCheck = 1008,
+ kCGErrorNoCurrentPoint = 1009,
+ kCGErrorInvalidOperation = 1010,
+ kCGErrorNoneAvailable = 1011,
+ kCGErrorLast = kCGErrorNoneAvailable
+};
+typedef enum CGError CGError;
+
+
+#if PRAGMA_ENUM_ALWAYSINT
+ #pragma enumsalwaysint reset
+ #ifdef __CGERROR__RESTORE_TWOBYTEINTS
+ #pragma fourbyteints off
+ #endif
+#elif PRAGMA_ENUM_OPTIONS
+ #pragma option enum=reset
+#elif defined(__CGERROR__RESTORE_PACKED_ENUMS)
+ #pragma options(pack_enums)
+#endif
+
+#ifdef PRAGMA_IMPORT_OFF
+#pragma import off
+#elif PRAGMA_IMPORT
+#pragma import reset
+#endif
+
+
+#endif /* CGERROR_H_ */
+