PageRenderTime 27ms CodeModel.GetById 18ms app.highlight 6ms RepoModel.GetById 1ms 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
 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
28#ifndef LL_LLEXTENDEDSTATUS_H
29#define LL_LLEXTENDEDSTATUS_H
30
31
32typedef S32 LLExtStat;
33
34
35// Status provider groups - Top bits indicate which status type it is
36// Zero is common status code (next section)
37const LLExtStat LL_EXSTAT_CURL_RESULT	= 1L<<30; // serviced by curl - use 1L if we really implement the below
38const LLExtStat LL_EXSTAT_RES_RESULT	= 2L<<30; // serviced by resident copy
39const LLExtStat LL_EXSTAT_VFS_RESULT	= 3L<<30; // serviced by vfs
40
41
42// Common Status Codes
43//
44const LLExtStat LL_EXSTAT_NONE				= 0x00000; // No extra info here - sorry!
45const LLExtStat LL_EXSTAT_NULL_UUID			= 0x10001; // null asset ID
46const LLExtStat LL_EXSTAT_NO_UPSTREAM		= 0x10002; // attempt to upload without a valid upstream method/provider
47const LLExtStat LL_EXSTAT_REQUEST_DROPPED	= 0x10003; // request was dropped unserviced
48const LLExtStat LL_EXSTAT_NONEXISTENT_FILE	= 0x10004; // trying to upload a file that doesn't exist
49const LLExtStat LL_EXSTAT_BLOCKED_FILE		= 0x10005; // trying to upload a file that we can't open
50
51
52// curl status codes:
53//
54// Mask off LL_EXSTAT_CURL_RESULT for original result and
55// see: libraries/include/curl/curl.h
56
57
58// Memory-Resident status codes:
59// None at present
60
61
62// VFS status codes:
63const LLExtStat LL_EXSTAT_VFS_CACHED	= LL_EXSTAT_VFS_RESULT | 0x0001;
64const LLExtStat LL_EXSTAT_VFS_CORRUPT	= LL_EXSTAT_VFS_RESULT | 0x0002;
65
66
67#endif // LL_LLEXTENDEDSTATUS_H