PageRenderTime 33ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llcommon/llextendedstatus.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 67 lines | 15 code | 15 blank | 37 comment | 0 complexity | 4e819369847d20a74797f40e2a09f3f3 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llextendedstatus.h
  3. * @date August 2007
  4. * @brief extended status codes for curl/vfs/resident asset storage and delivery
  5. *
  6. * $LicenseInfo:firstyear=2007&license=viewerlgpl$
  7. * Second Life Viewer Source Code
  8. * Copyright (C) 2010, Linden Research, Inc.
  9. *
  10. * This library is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU Lesser General Public
  12. * License as published by the Free Software Foundation;
  13. * version 2.1 of the License only.
  14. *
  15. * This library is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  18. * Lesser General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Lesser General Public
  21. * License along with this library; if not, write to the Free Software
  22. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  23. *
  24. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  25. * $/LicenseInfo$
  26. */
  27. #ifndef LL_LLEXTENDEDSTATUS_H
  28. #define LL_LLEXTENDEDSTATUS_H
  29. typedef S32 LLExtStat;
  30. // Status provider groups - Top bits indicate which status type it is
  31. // Zero is common status code (next section)
  32. const LLExtStat LL_EXSTAT_CURL_RESULT = 1L<<30; // serviced by curl - use 1L if we really implement the below
  33. const LLExtStat LL_EXSTAT_RES_RESULT = 2L<<30; // serviced by resident copy
  34. const LLExtStat LL_EXSTAT_VFS_RESULT = 3L<<30; // serviced by vfs
  35. // Common Status Codes
  36. //
  37. const LLExtStat LL_EXSTAT_NONE = 0x00000; // No extra info here - sorry!
  38. const LLExtStat LL_EXSTAT_NULL_UUID = 0x10001; // null asset ID
  39. const LLExtStat LL_EXSTAT_NO_UPSTREAM = 0x10002; // attempt to upload without a valid upstream method/provider
  40. const LLExtStat LL_EXSTAT_REQUEST_DROPPED = 0x10003; // request was dropped unserviced
  41. const LLExtStat LL_EXSTAT_NONEXISTENT_FILE = 0x10004; // trying to upload a file that doesn't exist
  42. const LLExtStat LL_EXSTAT_BLOCKED_FILE = 0x10005; // trying to upload a file that we can't open
  43. // curl status codes:
  44. //
  45. // Mask off LL_EXSTAT_CURL_RESULT for original result and
  46. // see: libraries/include/curl/curl.h
  47. // Memory-Resident status codes:
  48. // None at present
  49. // VFS status codes:
  50. const LLExtStat LL_EXSTAT_VFS_CACHED = LL_EXSTAT_VFS_RESULT | 0x0001;
  51. const LLExtStat LL_EXSTAT_VFS_CORRUPT = LL_EXSTAT_VFS_RESULT | 0x0002;
  52. #endif // LL_LLEXTENDEDSTATUS_H