llextendedstatus.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * @file llextendedstatus.h
  3. * @date August 2007
  4. * @brief Extended status codes for curl/resident asset storage & delivery
  5. *
  6. * $LicenseInfo:firstyear=2007&license=viewergpl$
  7. *
  8. * Copyright (c) 2007-2009, Linden Research, Inc.
  9. *
  10. * Second Life Viewer Source Code
  11. * The source code in this file ("Source Code") is provided by Linden Lab
  12. * to you under the terms of the GNU General Public License, version 2.0
  13. * ("GPL"), unless you have obtained a separate licensing agreement
  14. * ("Other License"), formally executed by you and Linden Lab. Terms of
  15. * the GPL can be found in doc/GPL-license.txt in this distribution, or
  16. * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
  17. *
  18. * There are special exceptions to the terms and conditions of the GPL as
  19. * it is applied to this Source Code. View the full text of the exception
  20. * in the file doc/FLOSS-exception.txt in this software distribution, or
  21. * online at
  22. * http://secondlifegrid.net/programs/open_source/licensing/flossexception
  23. *
  24. * By copying, modifying or distributing this software, you acknowledge
  25. * that you have read and understood your obligations described above,
  26. * and agree to abide by those obligations.
  27. *
  28. * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
  29. * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
  30. * COMPLETENESS OR PERFORMANCE.
  31. * $/LicenseInfo$
  32. */
  33. #ifndef LL_LLEXTENDEDSTATUS_H
  34. #define LL_LLEXTENDEDSTATUS_H
  35. enum class LLExtStat : U32
  36. {
  37. // Status provider groups. Top bits indicate which status type it is
  38. // Zero is common status code (next section).
  39. CURL_RESULT = 1UL << 30, // Serviced by curl
  40. RES_RESULT = 2UL << 30, // Serviced by resident copy
  41. CACHE_RESULT = 3UL << 30, // Serviced by cache
  42. // Common status codes
  43. NONE = 0x00000, // No extra info here, sorry !
  44. NULL_UUID = 0x10001, // Null asset ID
  45. NO_UPSTREAM = 0x10002, // Attempt to upload without valid upstream
  46. REQUEST_DROPPED = 0x10003, // Request was dropped unserviced
  47. NONEXISTENT_FILE = 0x10004, // Tried to upload non existent file
  48. BLOCKED_FILE = 0x10005, // Tried to upload a file we cannot open
  49. // Curl status codes:
  50. // Mask off CURL_RESULT for original result and
  51. // See: include/curl/curl.h
  52. // Cache status codes:
  53. CACHE_CACHED = CACHE_RESULT | 0x0001,
  54. CACHE_CORRUPT = CACHE_RESULT | 0x0002,
  55. };
  56. #endif // LL_LLEXTENDEDSTATUS_H