/common/err.h

https://bitbucket.org/pbuitvydas/tcpmp · C Header · 56 lines · 24 code · 6 blank · 26 comment · 0 complexity · 76dcc717da2c39503c33fa7ec68cd257 MD5 · raw file

  1. /*****************************************************************************
  2. *
  3. * This program is free software ; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation; either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, write to the Free Software
  15. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. *
  17. * $Id: err.h 349 2005-11-22 22:14:55Z picard $
  18. *
  19. * The Core Pocket Media Player
  20. * Copyright (c) 2004-2005 Gabor Kovacs
  21. *
  22. ****************************************************************************/
  23. #ifndef __ERR_H
  24. #define __ERR_H
  25. #define ERR_ID FOURCC('E','R','R','_')
  26. //----------------------------------------------------------------
  27. // error codes
  28. #define ERR_NONE 0
  29. #define ERR_BUFFER_FULL -1
  30. #define ERR_OUT_OF_MEMORY -2
  31. #define ERR_INVALID_DATA -3
  32. #define ERR_INVALID_PARAM -4
  33. #define ERR_NOT_SUPPORTED -5
  34. #define ERR_NEED_MORE_DATA -6
  35. #define ERR_FILE_NOT_FOUND -8
  36. #define ERR_END_OF_FILE -9
  37. #define ERR_DEVICE_ERROR -10
  38. #define ERR_SYNCED -11
  39. #define ERR_DATA_NOT_FOUND -12
  40. #define ERR_MIME_NOT_FOUND -13
  41. #define ERR_NOT_DIRECTORY -14
  42. #define ERR_NOT_COMPATIBLE -15
  43. #define ERR_CONNECT_FAILED -16
  44. #define ERR_DROPPING -17
  45. #define ERR_STOPPED -18
  46. #define ERR_UNAUTHORIZED -19
  47. #define ERR_LOADING_HEADER -20
  48. // buffer full: data is not processed, retry later
  49. // need more data: data is processed, but need more to continue
  50. #endif