Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Archive
Alchemy Viewer
Commits
8d8f42bc
Commit
8d8f42bc
authored
9 years ago
by
¡Cinder! ㊝
Browse files
Options
Downloads
Patches
Plain Diff
Add grid uas if grid info has it sends it
parent
1c05d1de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llviewernetwork.cpp
+20
-0
20 additions, 0 deletions
indra/newview/llviewernetwork.cpp
indra/newview/llviewernetwork.h
+3
-0
3 additions, 0 deletions
indra/newview/llviewernetwork.h
with
23 additions
and
0 deletions
indra/newview/llviewernetwork.cpp
+
20
−
0
View file @
8d8f42bc
...
...
@@ -66,6 +66,8 @@ const std::string GRID_FORGOT_PASSWORD_URL = "password";
const
std
::
string
GRID_PLATFORM
=
"platform"
;
/// a grid's gatekeeper address
const
std
::
string
GRID_GATEKEEPER
=
"gatekeeper"
;
/// a grid's uas service address
const
std
::
string
GRID_UAS
=
"uas"
;
// defines slurl formats associated with various grids.
// we need to continue to support existing forms, as slurls
...
...
@@ -533,6 +535,11 @@ void LLGridManager::gridInfoResponderCallback(LLSD& grid, LLXMLNodePtr root_node
grid
[
GRID_GATEKEEPER
]
=
gatekeeper
.
authority
();
LL_DEBUGS
(
"GridManager"
)
<<
"[
\"
gatekeeper
\"
]: "
<<
grid
[
GRID_GATEKEEPER
]
<<
LL_ENDL
;
}
else
if
(
node
->
hasName
(
"uas"
))
{
grid
[
GRID_UAS
]
=
node
->
getTextContents
();
LL_DEBUGS
(
"GridManager"
)
<<
"[
\"
uas
\"
]: "
<<
grid
[
GRID_UAS
]
<<
LL_ENDL
;
}
else
if
(
node
->
hasName
(
"platform"
))
{
grid
[
GRID_PLATFORM
]
=
node
->
getTextContents
();
...
...
@@ -757,6 +764,19 @@ std::string LLGridManager::getGatekeeper(const std::string& grid) const
return
url
;
}
std
::
string
LLGridManager
::
getUserAccountServiceURL
(
const
std
::
string
&
grid
)
const
{
std
::
string
url
=
LLStringUtil
::
null
;
std
::
string
grid_name
=
getGrid
(
grid
);
if
(
!
grid_name
.
empty
())
{
url
=
mGridList
[
grid_name
].
has
(
GRID_UAS
)
?
mGridList
[
grid_name
][
GRID_UAS
].
asString
()
:
LLStringUtil
::
null
;
}
return
url
;
}
std
::
string
LLGridManager
::
getHelperURI
(
const
std
::
string
&
grid
)
const
{
std
::
string
helper_uri
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewernetwork.h
+
3
−
0
View file @
8d8f42bc
...
...
@@ -131,6 +131,9 @@ class LLGridManager : public LLSingleton<LLGridManager>
/// Get the hypergrid gatekeeper uri for the specified grid
std
::
string
getGatekeeper
(
const
std
::
string
&
grid
)
const
;
/// Get the uas service for the specified grid if available
std
::
string
getUserAccountServiceURL
(
const
std
::
string
&
grid
)
const
;
/// Get the URI for webdev help functions for the specified grid
std
::
string
getHelperURI
(
const
std
::
string
&
grid
)
const
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment