bh_definition.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef _BH_DEFINITION_H
  17. #define _BH_DEFINITION_H
  18. #include "bh_config.h"
  19. typedef enum {
  20. BH_FAILED = -100,
  21. BH_UNKOWN = -99,
  22. BH_MAGIC_UNMATCH = -12,
  23. BH_UNIMPLEMENTED = -11,
  24. BH_INTR = -10,
  25. BH_CLOSED = -9,
  26. BH_BUFFER_OVERFLOW = -8, /* TODO: no used error, should remove*/
  27. BH_NOT_SUPPORTED = -7,
  28. BH_WEAR_OUT_VIOLATION = -6,
  29. BH_NOT_FOUND = -5,
  30. BH_INVALID_PARAMS = -4,
  31. BH_ACCESS_DENIED = -3,
  32. BH_OUT_OF_MEMORY = -2,
  33. BH_INVALID = -1,
  34. BH_SUCCESS = 0,
  35. BH_TIMEOUT = 2
  36. } bh_status;
  37. #endif