aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llassetstorage.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llmessage/llassetstorage.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llassetstorage.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llassetstorage.h b/linden/indra/llmessage/llassetstorage.h
index b7da197..739242a 100644
--- a/linden/indra/llmessage/llassetstorage.h
+++ b/linden/indra/llmessage/llassetstorage.h
@@ -420,6 +420,32 @@ private:
420 LLXferManager *xfer, 420 LLXferManager *xfer,
421 LLVFS *vfs, 421 LLVFS *vfs,
422 const LLHost &upstream_host); 422 const LLHost &upstream_host);
423
424protected:
425 enum EMetricResult
426 {
427 // Static valued enums for #dw readability - please copy this
428 // declaration to them on updates -- source in llassetstorage.h
429 MR_INVALID = -1, // Makes no sense
430 MR_OKAY = 0, // Success - no metric normally
431 MR_ZERO_SIZE = 1, // Zero size asset
432 MR_BAD_FUNCTION = 2, // Tried to use a virtual base (PROGRAMMER ERROR)
433 MR_FILE_NONEXIST = 3, // Old format store call - source file does not exist
434 MR_NO_FILENAME = 4, // Old format store call - source filename is NULL/0-length
435 MR_NO_UPSTREAM = 5, // Upstream provider is missing
436 MR_VFS_CORRUPTION = 6 // VFS is corrupt - too-large or mismatched stated/returned sizes
437 };
438
439 static class LLMetrics *metric_recipient;
440
441 static void reportMetric( const LLUUID& asset_id, const LLAssetType::EType asset_type, const char *filename,
442 const LLUUID& agent_id, S32 asset_size, EMetricResult result,
443 const char *file, const S32 line, const char *message );
444public:
445 static void setMetricRecipient( LLMetrics *recip )
446 {
447 metric_recipient = recip;
448 }
423}; 449};
424 450
425//////////////////////////////////////////////////////////////////////// 451////////////////////////////////////////////////////////////////////////