diff options
Diffstat (limited to 'linden/indra/llmessage/llassetstorage.h')
-rw-r--r-- | linden/indra/llmessage/llassetstorage.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/linden/indra/llmessage/llassetstorage.h b/linden/indra/llmessage/llassetstorage.h index f80a77d..ab12b7a 100644 --- a/linden/indra/llmessage/llassetstorage.h +++ b/linden/indra/llmessage/llassetstorage.h | |||
@@ -95,6 +95,7 @@ public: | |||
95 | 95 | ||
96 | void setUUID(const LLUUID& id) { mUUID = id; } | 96 | void setUUID(const LLUUID& id) { mUUID = id; } |
97 | void setType(LLAssetType::EType type) { mType = type; } | 97 | void setType(LLAssetType::EType type) { mType = type; } |
98 | void setTimeout (F64 timeout) { mTimeout = timeout; } | ||
98 | 99 | ||
99 | protected: | 100 | protected: |
100 | LLUUID mUUID; | 101 | LLUUID mUUID; |
@@ -109,7 +110,9 @@ public: | |||
109 | LLHost mHost; | 110 | LLHost mHost; |
110 | BOOL mIsTemp; | 111 | BOOL mIsTemp; |
111 | BOOL mIsLocal; | 112 | BOOL mIsLocal; |
113 | BOOL mIsUserWaiting; // We don't want to try forever if a user is waiting for a result. | ||
112 | F64 mTime; // Message system time | 114 | F64 mTime; // Message system time |
115 | F64 mTimeout; // Amount of time before timing out. | ||
113 | BOOL mIsPriority; | 116 | BOOL mIsPriority; |
114 | BOOL mDataSentInFirstPacket; | 117 | BOOL mDataSentInFirstPacket; |
115 | BOOL mDataIsInVFS; | 118 | BOOL mDataIsInVFS; |
@@ -252,7 +255,9 @@ public: | |||
252 | void* user_data, | 255 | void* user_data, |
253 | bool temp_file = false, | 256 | bool temp_file = false, |
254 | bool is_priority = false, | 257 | bool is_priority = false, |
255 | bool store_local = false); | 258 | bool store_local = false, |
259 | bool user_waiting= false, | ||
260 | F64 timeout=LL_ASSET_STORAGE_TIMEOUT); | ||
256 | 261 | ||
257 | /* | 262 | /* |
258 | * AssetID version | 263 | * AssetID version |
@@ -266,7 +271,9 @@ public: | |||
266 | bool temp_file = false, | 271 | bool temp_file = false, |
267 | bool is_priority = false, | 272 | bool is_priority = false, |
268 | bool store_local = false, | 273 | bool store_local = false, |
269 | const LLUUID& requesting_agent_id = LLUUID::null); | 274 | const LLUUID& requesting_agent_id = LLUUID::null, |
275 | bool user_waiting= false, | ||
276 | F64 timeout=LL_ASSET_STORAGE_TIMEOUT); | ||
270 | 277 | ||
271 | virtual void checkForTimeouts(); | 278 | virtual void checkForTimeouts(); |
272 | 279 | ||
@@ -360,7 +367,9 @@ public: | |||
360 | LLStoreAssetCallback callback, | 367 | LLStoreAssetCallback callback, |
361 | void* user_data, | 368 | void* user_data, |
362 | bool temp_file = false, | 369 | bool temp_file = false, |
363 | bool is_priority = false); | 370 | bool is_priority = false, |
371 | bool user_waiting = false, | ||
372 | F64 timeout = LL_ASSET_STORAGE_TIMEOUT); | ||
364 | 373 | ||
365 | /* | 374 | /* |
366 | * TransactionID version | 375 | * TransactionID version |
@@ -372,7 +381,9 @@ public: | |||
372 | LLStoreAssetCallback callback, | 381 | LLStoreAssetCallback callback, |
373 | void *user_data, | 382 | void *user_data, |
374 | bool temp_file = false, | 383 | bool temp_file = false, |
375 | bool is_priority = false); | 384 | bool is_priority = false, |
385 | bool user_waiting = false, | ||
386 | F64 timeout = LL_ASSET_STORAGE_TIMEOUT); | ||
376 | 387 | ||
377 | static void legacyGetDataCallback(LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType, void *user_data, S32 status); | 388 | static void legacyGetDataCallback(LLVFS *vfs, const LLUUID &uuid, LLAssetType::EType, void *user_data, S32 status); |
378 | static void legacyStoreDataCallback(const LLUUID &uuid, void *user_data, S32 status); | 389 | static void legacyStoreDataCallback(const LLUUID &uuid, void *user_data, S32 status); |