V2 llmessage merge, incl. llcommon requisites.
Excluded llareslistener, as that appears to only be present for unit-testing Excluded new SSL methods because, well, they don't work right reliably in v2 for me
This commit is contained in:
@@ -60,7 +60,7 @@ void LLTransferSourceAsset::initTransfer()
|
||||
// to the simulator. This is subset of assets we allow to be
|
||||
// simply pulled straight from the asset system.
|
||||
LLUUID* tidp;
|
||||
if(is_asset_fetch_by_id_allowed(mParams.getAssetType()))
|
||||
if(LLAssetType::lookupIsAssetFetchByIDAllowed(mParams.getAssetType()))
|
||||
{
|
||||
tidp = new LLUUID(getID());
|
||||
gAssetStorage->getAssetData(
|
||||
@@ -226,7 +226,10 @@ void LLTransferSourceAsset::responderCallback(LLVFS *vfs, const LLUUID& uuid, LL
|
||||
|
||||
|
||||
|
||||
LLTransferSourceParamsAsset::LLTransferSourceParamsAsset() : LLTransferSourceParams(LLTST_ASSET)
|
||||
LLTransferSourceParamsAsset::LLTransferSourceParamsAsset()
|
||||
: LLTransferSourceParams(LLTST_ASSET),
|
||||
|
||||
mAssetType(LLAssetType::AT_NONE)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -254,50 +257,3 @@ BOOL LLTransferSourceParamsAsset::unpackParams(LLDataPacker &dp)
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper functions
|
||||
*/
|
||||
bool is_asset_fetch_by_id_allowed(LLAssetType::EType type)
|
||||
{
|
||||
// *FIX: Make this list smaller.
|
||||
bool rv = false;
|
||||
switch(type)
|
||||
{
|
||||
case LLAssetType::AT_SOUND:
|
||||
case LLAssetType::AT_LANDMARK:
|
||||
case LLAssetType::AT_CLOTHING:
|
||||
case LLAssetType::AT_BODYPART:
|
||||
case LLAssetType::AT_ANIMATION:
|
||||
case LLAssetType::AT_GESTURE:
|
||||
rv = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
bool is_asset_id_knowable(LLAssetType::EType type)
|
||||
{
|
||||
// *FIX: Make this list smaller.
|
||||
bool rv = false;
|
||||
switch(type)
|
||||
{
|
||||
case LLAssetType::AT_TEXTURE:
|
||||
case LLAssetType::AT_SOUND:
|
||||
case LLAssetType::AT_LANDMARK:
|
||||
case LLAssetType::AT_CLOTHING:
|
||||
case LLAssetType::AT_NOTECARD:
|
||||
case LLAssetType::AT_BODYPART:
|
||||
case LLAssetType::AT_ANIMATION:
|
||||
case LLAssetType::AT_GESTURE:
|
||||
case LLAssetType::AT_LINK:
|
||||
case LLAssetType::AT_LINK_FOLDER:
|
||||
rv = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user