common_errno.h 967 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright 2018 C-SKY Microsystems Co., Ltd.
  3. * Copyright (C) 2021 Alibaba Group Holding Limited
  4. * Author: LuChongzhi <chongzhi.lcz@alibaba-inc.com>
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. *
  18. */
  19. #ifndef __COMMON_ERRNO_H__
  20. #define __COMMON_ERRNO_H__
  21. #include <errno.h>
  22. typedef enum {
  23. FAILURE = -1,
  24. SUCCESS = 0,
  25. ERRNO_INVALID_PARAMETER,
  26. ERRNO_INVALID_STATE,
  27. ERRNO_INVALID_CLIENT_PACKAGE,
  28. } common_errno_e;
  29. #endif /* __COMMON_ERRNO_H__ */