|
|
@ -912,8 +912,10 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void) |
|
|
|
//--------------------------------------------------------------------
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
// BASIC LINK. Link to a unique instance of the age, if no instance specified.
|
|
|
|
// BASIC LINK. Link to a unique instance of the age, if no instance specified.
|
|
|
|
case plNetCommon::LinkingRules::kBasicLink: |
|
|
|
case plNetCommon::LinkingRules::kBasicLink: |
|
|
|
if (!info->HasAgeInstanceGuid()) |
|
|
|
if (!info->HasAgeInstanceGuid()) { |
|
|
|
info->SetAgeInstanceGuid(&plUUID(GuidGenerate())); |
|
|
|
plUUID newuuid(GuidGenerate()); |
|
|
|
|
|
|
|
info->SetAgeInstanceGuid(&newuuid); |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------
|
|
|
|
//--------------------------------------------------------------------
|
|
|
@ -952,7 +954,8 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void) |
|
|
|
info->SetAgeDescription(desc.c_str()); |
|
|
|
info->SetAgeDescription(desc.c_str()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!info->HasAgeInstanceGuid()) { |
|
|
|
if (!info->HasAgeInstanceGuid()) { |
|
|
|
info->SetAgeInstanceGuid(&plUUID(GuidGenerate())); |
|
|
|
plUUID newuuid(GuidGenerate()); |
|
|
|
|
|
|
|
info->SetAgeInstanceGuid(&newuuid); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// register this as an owned age now before we link to it.
|
|
|
|
// register this as an owned age now before we link to it.
|
|
|
@ -992,7 +995,8 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!info->HasAgeInstanceGuid()) { |
|
|
|
if (!info->HasAgeInstanceGuid()) { |
|
|
|
info->SetAgeInstanceGuid(&plUUID(GuidGenerate())); |
|
|
|
plUUID newuuid(GuidGenerate()); |
|
|
|
|
|
|
|
info->SetAgeInstanceGuid(&newuuid); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
VaultRegisterOwnedAge(link); |
|
|
|
VaultRegisterOwnedAge(link); |
|
|
@ -1078,10 +1082,10 @@ uint8_t plNetLinkingMgr::IPreProcessLink(void) |
|
|
|
case hsFail: |
|
|
|
case hsFail: |
|
|
|
success = kLinkFailed; |
|
|
|
success = kLinkFailed; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case FALSE: |
|
|
|
case false: |
|
|
|
success = kLinkDeferred; |
|
|
|
success = kLinkDeferred; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case TRUE: |
|
|
|
case true: |
|
|
|
success = kLinkImmediately; |
|
|
|
success = kLinkImmediately; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|