diff options
Diffstat (limited to 'linden/indra/llcommon/llextendedstatus.h')
-rw-r--r-- | linden/indra/llcommon/llextendedstatus.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llextendedstatus.h b/linden/indra/llcommon/llextendedstatus.h new file mode 100644 index 0000000..a1c998f --- /dev/null +++ b/linden/indra/llcommon/llextendedstatus.h | |||
@@ -0,0 +1,69 @@ | |||
1 | /** | ||
2 | * @file llextendedstatus.h | ||
3 | * @date August 2007 | ||
4 | * @brief extended status codes for curl/vfs/resident asset storage and delivery | ||
5 | * | ||
6 | * Copyright (c) 2007-2007, Linden Research, Inc. | ||
7 | * | ||
8 | * Second Life Viewer Source Code | ||
9 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
10 | * to you under the terms of the GNU General Public License, version 2.0 | ||
11 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
12 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
13 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
14 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
15 | * | ||
16 | * There are special exceptions to the terms and conditions of the GPL as | ||
17 | * it is applied to this Source Code. View the full text of the exception | ||
18 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
19 | * online at http://secondlife.com/developers/opensource/flossexception | ||
20 | * | ||
21 | * By copying, modifying or distributing this software, you acknowledge | ||
22 | * that you have read and understood your obligations described above, | ||
23 | * and agree to abide by those obligations. | ||
24 | * | ||
25 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
26 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
27 | * COMPLETENESS OR PERFORMANCE. | ||
28 | */ | ||
29 | |||
30 | #ifndef LL_LLEXTENDEDSTATUS_H | ||
31 | #define LL_LLEXTENDEDSTATUS_H | ||
32 | |||
33 | |||
34 | typedef S32 LLExtStat; | ||
35 | |||
36 | |||
37 | // Status provider groups - Top bits indicate which status type it is | ||
38 | // Zero is common status code (next section) | ||
39 | const LLExtStat LL_EXSTAT_CURL_RESULT = 1L<<30; // serviced by curl - use 1L if we really implement the below | ||
40 | const LLExtStat LL_EXSTAT_RES_RESULT = 2L<<30; // serviced by resident copy | ||
41 | const LLExtStat LL_EXSTAT_VFS_RESULT = 3L<<30; // serviced by vfs | ||
42 | |||
43 | |||
44 | // Common Status Codes | ||
45 | // | ||
46 | const LLExtStat LL_EXSTAT_NONE = 0x00000; // No extra info here - sorry! | ||
47 | const LLExtStat LL_EXSTAT_NULL_UUID = 0x10001; // null asset ID | ||
48 | const LLExtStat LL_EXSTAT_NO_UPSTREAM = 0x10002; // attempt to upload without a valid upstream method/provider | ||
49 | const LLExtStat LL_EXSTAT_REQUEST_DROPPED = 0x10003; // request was dropped unserviced | ||
50 | const LLExtStat LL_EXSTAT_NONEXISTENT_FILE = 0x10004; // trying to upload a file that doesn't exist | ||
51 | const LLExtStat LL_EXSTAT_BLOCKED_FILE = 0x10005; // trying to upload a file that we can't open | ||
52 | |||
53 | |||
54 | // curl status codes: | ||
55 | // | ||
56 | // Mask off LL_EXSTAT_CURL_RESULT for original result and | ||
57 | // see: libraries/include/curl/curl.h | ||
58 | |||
59 | |||
60 | // Memory-Resident status codes: | ||
61 | // None at present | ||
62 | |||
63 | |||
64 | // VFS status codes: | ||
65 | const LLExtStat LL_EXSTAT_VFS_CACHED = LL_EXSTAT_VFS_RESULT | 0x0001; | ||
66 | const LLExtStat LL_EXSTAT_VFS_CORRUPT = LL_EXSTAT_VFS_RESULT | 0x0002; | ||
67 | |||
68 | |||
69 | #endif // LL_LLEXTENDEDSTATUS_H | ||