0.2.0-dev Download ZIP
26 lines ·742 B Raw
| 1 | // Adapted from mono-public-types.h and image-types.h. |
| 2 | |
| 3 | // https://github.com/dotnet/runtime/blob/27a7fe5c4bbe0762c231b2a46162e60ee04f3cde/src/native/public/mono/utils/details/mono-publib-types.h |
| 4 | // https://github.com/dotnet/runtime/blob/27a7fe5c4bbe0762c231b2a46162e60ee04f3cde/src/native/public/mono/metadata/details/image-types.h |
| 5 | |
| 6 | #ifndef _MONO_TYPES_H_ |
| 7 | #define _MONO_TYPES_H_ |
| 8 | |
| 9 | #include <stdint.h> |
| 10 | #include <stdlib.h> |
| 11 | |
| 12 | typedef int32_t mono_bool; |
| 13 | |
| 14 | typedef void MonoAssembly; |
| 15 | typedef void MonoAssemblyName; |
| 16 | typedef void MonoImage; |
| 17 | |
| 18 | typedef enum { |
| 19 | MONO_IMAGE_OK, |
| 20 | MONO_IMAGE_ERROR_ERRNO, |
| 21 | MONO_IMAGE_MISSING_ASSEMBLYREF, |
| 22 | MONO_IMAGE_IMAGE_INVALID, |
| 23 | MONO_IMAGE_NOT_SUPPORTED, ///< \since net7 |
| 24 | } MonoImageOpenStatus; |
| 25 | |
| 26 | #endif // _MONO_TYPES_H_ |