1 #ifndef DataError_D_H 2 #define DataError_D_H 3 4 #include <stdio.h> 5 #include <stdint.h> 6 #include <stddef.h> 7 #include <stdbool.h> 8 #include "diplomat_runtime.h" 9 10 11 12 13 14 typedef enum DataError { 15 DataError_Unknown = 0, 16 DataError_MarkerNotFound = 1, 17 DataError_IdentifierNotFound = 2, 18 DataError_InvalidRequest = 3, 19 DataError_InconsistentData = 4, 20 DataError_Downcast = 5, 21 DataError_Deserialize = 6, 22 DataError_Custom = 7, 23 DataError_Io = 8, 24 } DataError; 25 26 typedef struct DataError_option {union { DataError ok; }; bool is_ok; } DataError_option; 27 28 29 30 #endif // DataError_D_H 31