#include #include #include static const b_error_definition error_defs[] = { B_ERROR_DEFINITION(MIE_SUCCESS, "SUCCESS", "Success"), B_ERROR_DEFINITION(MIE_ERR_EOF, "EOF", "Unexpected end of file"), B_ERROR_DEFINITION(MIE_ERR_BAD_SYNTAX, "BAD_SYNTAX", "Invalid syntax"), B_ERROR_DEFINITION(MIE_ERR_NO_MEMORY, "NO_MEMORY", "Out of memory"), B_ERROR_DEFINITION( MIE_ERR_NOT_SUPPORTED, "NOT_SUPPORTED", "Operation not supported"), B_ERROR_DEFINITION( MIE_ERR_INTERNAL_FAILURE, "INTERNAL_FAILURE", "Internal failure"), B_ERROR_DEFINITION( MIE_ERR_INVALID_VALUE, "INVALID_VALUE", "Invalid value"), B_ERROR_DEFINITION(MIE_ERR_NO_ENTRY, "NO_ENTRY", "Name does not exist"), B_ERROR_DEFINITION(MIE_ERR_BAD_FORMAT, "BAD_FORMAT", "Bad format"), }; static const b_error_vendor error_vendor = { .v_name = "Mie", .v_error_definitions = error_defs, .v_error_definitions_length = sizeof error_defs, }; const struct b_error_vendor *mie_error_vendor(void) { return &error_vendor; }