finsh_error.h 634 B

123456789101112131415161718192021222324252627
  1. /*
  2. * File : finsh_error.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2010, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-03-22 Bernard first version
  13. */
  14. #ifndef __FINSH_ERROR_H__
  15. #define __FINSH_ERROR_H__
  16. #include <finsh.h>
  17. int finsh_error_init(void);
  18. /* get error number */
  19. u_char finsh_errno(void);
  20. int finsh_error_set(u_char type);
  21. const char* finsh_error_string(u_char type);
  22. #endif