diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llassetstorage.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/linden/indra/llmessage/llassetstorage.h b/linden/indra/llmessage/llassetstorage.h index ab12b7a..630268d 100644 --- a/linden/indra/llmessage/llassetstorage.h +++ b/linden/indra/llmessage/llassetstorage.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "lltransfermanager.h" // For LLTSCode enum | 40 | #include "lltransfermanager.h" // For LLTSCode enum |
41 | #include "llassettype.h" | 41 | #include "llassettype.h" |
42 | #include "llstring.h" | 42 | #include "llstring.h" |
43 | #include "llextendedstatus.h" | ||
43 | 44 | ||
44 | // Forward declarations | 45 | // Forward declarations |
45 | class LLMessageSystem; | 46 | class LLMessageSystem; |
@@ -102,8 +103,8 @@ protected: | |||
102 | LLAssetType::EType mType; | 103 | LLAssetType::EType mType; |
103 | 104 | ||
104 | public: | 105 | public: |
105 | void (*mDownCallback)(LLVFS*, const LLUUID&, LLAssetType::EType, void *, S32); | 106 | void (*mDownCallback)(LLVFS*, const LLUUID&, LLAssetType::EType, void *, S32, LLExtStat); |
106 | void (*mUpCallback)(const LLUUID&, void *, S32); | 107 | void (*mUpCallback)(const LLUUID&, void *, S32, LLExtStat); |
107 | void (*mInfoCallback)(LLAssetInfo *, void *, S32); | 108 | void (*mInfoCallback)(LLAssetInfo *, void *, S32); |
108 | 109 | ||
109 | void *mUserData; | 110 | void *mUserData; |
@@ -150,7 +151,7 @@ protected: | |||
150 | LLAssetType::EType mType; | 151 | LLAssetType::EType mType; |
151 | 152 | ||
152 | public: | 153 | public: |
153 | void (*mDownCallback)(LLVFS*, const LLUUID&, LLAssetType::EType, void *, S32); | 154 | void (*mDownCallback)(LLVFS*, const LLUUID&, LLAssetType::EType, void *, S32, LLExtStat); |
154 | 155 | ||
155 | void *mUserData; | 156 | void *mUserData; |
156 | LLHost mHost; | 157 | LLHost mHost; |
@@ -180,7 +181,7 @@ protected: | |||
180 | EstateAssetType mEstateAssetType; | 181 | EstateAssetType mEstateAssetType; |
181 | 182 | ||
182 | public: | 183 | public: |
183 | void (*mDownCallback)(LLVFS*, const LLUUID&, LLAssetType::EType, void *, S32); | 184 | void (*mDownCallback)(LLVFS*, const LLUUID&, LLAssetType::EType, void *, S32, LLExtStat); |
184 | 185 | ||
185 | void *mUserData; | 186 | void *mUserData; |
186 | LLHost mHost; | 187 | LLHost mHost; |
@@ -196,14 +197,14 @@ public: | |||
196 | 197 | ||
197 | 198 | ||
198 | typedef void (*LLGetAssetCallback)(LLVFS *vfs, const LLUUID &asset_id, | 199 | typedef void (*LLGetAssetCallback)(LLVFS *vfs, const LLUUID &asset_id, |
199 | LLAssetType::EType asset_type, void *user_data, S32 status); | 200 | LLAssetType::EType asset_type, void *user_data, S32 status, LLExtStat ext_status); |
200 | 201 | ||
201 | class LLAssetStorage | 202 | class LLAssetStorage |
202 | { | 203 | { |
203 | public: | 204 | public: |
204 | // VFS member is public because static child methods need it :( | 205 | // VFS member is public because static child methods need it :( |
205 | LLVFS *mVFS; | 206 | LLVFS *mVFS; |
206 | typedef void (*LLStoreAssetCallback)(const LLUUID &asset_id, void *user_data, S32 status); | 207 | typedef void (*LLStoreAssetCallback)(const LLUUID &asset_id, void *user_data, S32 status, LLExtStat ext_status); |
207 | 208 | ||
208 | enum ERequestType | 209 | enum ERequestType |
209 | { | 210 | { |
@@ -335,27 +336,27 @@ public: | |||
335 | S32 result, | 336 | S32 result, |
336 | const LLUUID& file_id, | 337 | const LLUUID& file_id, |
337 | LLAssetType::EType file_type, | 338 | LLAssetType::EType file_type, |
338 | void* user_data); | 339 | void* user_data, LLExtStat ext_status); |
339 | static void downloadEstateAssetCompleteCallback( | 340 | static void downloadEstateAssetCompleteCallback( |
340 | S32 result, | 341 | S32 result, |
341 | const LLUUID& file_id, | 342 | const LLUUID& file_id, |
342 | LLAssetType::EType file_type, | 343 | LLAssetType::EType file_type, |
343 | void* user_data); | 344 | void* user_data, LLExtStat ext_status); |
344 | static void downloadInvItemCompleteCallback( | 345 | static void downloadInvItemCompleteCallback( |
345 | S32 result, | 346 | S32 result, |
346 | const LLUUID& file_id, | 347 | const LLUUID& file_id, |
347 | LLAssetType::EType file_type, | 348 | LLAssetType::EType file_type, |
348 | void* user_data); | 349 | void* user_data, LLExtStat ext_status); |
349 | 350 | ||
350 | // upload process callbacks | 351 | // upload process callbacks |
351 | static void uploadCompleteCallback(const LLUUID&, void *user_data, S32 result); | 352 | static void uploadCompleteCallback(const LLUUID&, void *user_data, S32 result, LLExtStat ext_status); |
352 | static void processUploadComplete(LLMessageSystem *msg, void **this_handle); | 353 | static void processUploadComplete(LLMessageSystem *msg, void **this_handle); |
353 | 354 | ||
354 | // debugging | 355 | // debugging |
355 | static const char* getErrorString( S32 status ); | 356 | static const char* getErrorString( S32 status ); |
356 | 357 | ||
357 | // deprecated file-based methods | 358 | // deprecated file-based methods |
358 | void getAssetData(const LLUUID uuid, LLAssetType::EType type, void (*callback)(const char*, const LLUUID&, void *, S32), void *user_data, BOOL is_priority = FALSE); | 359 | void getAssetData(const LLUUID uuid, LLAssetType::EType type, void (*callback)(const char*, const LLUUID&, void *, S32, LLExtStat), void *user_data, BOOL is_priority = FALSE); |
359 | 360 | ||
360 | /* | 361 | /* |
361 | * AssetID version. | 362 | * AssetID version. |
@@ -385,8 +386,8 @@ public: | |||
385 | bool user_waiting = false, | 386 | bool user_waiting = false, |
386 | F64 timeout = LL_ASSET_STORAGE_TIMEOUT); | 387 | F64 timeout = LL_ASSET_STORAGE_TIMEOUT); |
387 | 388 | ||
388 | static void legacyGetDataCallback(LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType, void *user_data, S32 status); | 389 | static void legacyGetDataCallback(LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType, void *user_data, S32 status, LLExtStat ext_status); |
389 | static void legacyStoreDataCallback(const LLUUID &uuid, void *user_data, S32 status); | 390 | static void legacyStoreDataCallback(const LLUUID &uuid, void *user_data, S32 status, LLExtStat ext_status); |
390 | 391 | ||
391 | // Temp assets are stored on sim nodes, they have agent ID and location data associated with them. | 392 | // Temp assets are stored on sim nodes, they have agent ID and location data associated with them. |
392 | // This is a no-op for non-http asset systems | 393 | // This is a no-op for non-http asset systems |
@@ -404,10 +405,10 @@ public: | |||
404 | 405 | ||
405 | protected: | 406 | protected: |
406 | void _cleanupRequests(BOOL all, S32 error); | 407 | void _cleanupRequests(BOOL all, S32 error); |
407 | void _callUploadCallbacks(const LLUUID &uuid, const LLAssetType::EType asset_type, BOOL success); | 408 | void _callUploadCallbacks(const LLUUID &uuid, const LLAssetType::EType asset_type, BOOL success, LLExtStat ext_status); |
408 | 409 | ||
409 | virtual void _queueDataRequest(const LLUUID& uuid, LLAssetType::EType type, | 410 | virtual void _queueDataRequest(const LLUUID& uuid, LLAssetType::EType type, |
410 | void (*callback)(LLVFS *vfs, const LLUUID&, LLAssetType::EType, void *, S32), | 411 | void (*callback)(LLVFS *vfs, const LLUUID&, LLAssetType::EType, void *, S32, LLExtStat), |
411 | void *user_data, BOOL duplicate, | 412 | void *user_data, BOOL duplicate, |
412 | BOOL is_priority); | 413 | BOOL is_priority); |
413 | 414 | ||
@@ -425,7 +426,7 @@ private: | |||
425 | class LLLegacyAssetRequest | 426 | class LLLegacyAssetRequest |
426 | { | 427 | { |
427 | public: | 428 | public: |
428 | void (*mDownCallback)(const char *, const LLUUID&, void *, S32); | 429 | void (*mDownCallback)(const char *, const LLUUID&, void *, S32, LLExtStat); |
429 | LLAssetStorage::LLStoreAssetCallback mUpCallback; | 430 | LLAssetStorage::LLStoreAssetCallback mUpCallback; |
430 | 431 | ||
431 | void *mUserData; | 432 | void *mUserData; |