@ -185,7 +185,6 @@ struct VaultDownloadTrans {
: callback ( ) , cbParam ( ) , progressCallback ( ) , cbProgressParam ( ) ,
nodeCount ( ) , nodesLeft ( ) , vaultId ( ) , result ( kNetSuccess )
{
VaultSuppressCallbacks ( ) ;
}
VaultDownloadTrans ( const wchar_t * _tag , FVaultDownloadCallback _callback ,
@ -195,15 +194,11 @@ struct VaultDownloadTrans {
cbProgressParam ( _cbProgressParam ) , nodeCount ( ) , nodesLeft ( ) ,
vaultId ( _vaultId ) , result ( kNetSuccess )
{
StrCopy ( tag , _tag , MAX_PATH ) ;
VaultSuppressCallbacks ( ) ;
StrCopy ( tag , _tag , arrsize ( tag ) ) ;
}
~ VaultDownloadTrans ( )
{
VaultEnableCallbacks ( ) ;
}
virtual ~ VaultDownloadTrans ( ) { }
static void VaultNodeFetched (
ENetError result ,
void * param ,
@ -217,6 +212,28 @@ struct VaultDownloadTrans {
) ;
} ;
struct VaultDownloadNoCallbacksTrans : VaultDownloadTrans {
VaultDownloadNoCallbacksTrans ( )
: VaultDownloadTrans ( )
{
VaultSuppressCallbacks ( ) ;
}
VaultDownloadNoCallbacksTrans ( const wchar_t * _tag , FVaultDownloadCallback _callback ,
void * _cbParam , FVaultProgressCallback _progressCallback ,
void * _cbProgressParam , unsigned _vaultId )
: VaultDownloadTrans ( _tag , _callback , _cbParam , _progressCallback , _cbProgressParam , _vaultId )
{
VaultSuppressCallbacks ( ) ;
}
~ VaultDownloadNoCallbacksTrans ( )
{
VaultEnableCallbacks ( ) ;
}
} ;
struct VaultAgeInitTrans {
FVaultInitAgeCallback callback ;
void * cbState ;
@ -4995,6 +5012,25 @@ void VaultDownload (
) ;
}
//============================================================================
void VaultDownloadNoCallbacks (
const wchar tag [ ] ,
unsigned vaultId ,
FVaultDownloadCallback callback ,
void * cbParam ,
FVaultProgressCallback progressCallback ,
void * cbProgressParam
) {
VaultDownloadNoCallbacksTrans * trans = new VaultDownloadNoCallbacksTrans ( tag , callback ,
cbParam , progressCallback , cbProgressParam , vaultId ) ;
NetCliAuthVaultFetchNodeRefs (
vaultId ,
VaultDownloadTrans : : VaultNodeRefsFetched ,
trans
) ;
}
//============================================================================
struct _DownloadVaultParam {
ENetError result ;