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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
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 Viewer
Alchemy Viewer
Commits
de484631
Commit
de484631
authored
1 year ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Update sdbus api glue wrappers
parent
8b1dbcfa
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/llappviewerlinux_api-client-glue.h
+8
-3
8 additions, 3 deletions
indra/newview/llappviewerlinux_api-client-glue.h
indra/newview/llappviewerlinux_api-server-glue.h
+8
-3
8 additions, 3 deletions
indra/newview/llappviewerlinux_api-server-glue.h
with
16 additions
and
6 deletions
indra/newview/llappviewerlinux_api-client-glue.h
+
8
−
3
View file @
de484631
...
@@ -20,22 +20,27 @@ class ViewerAppAPI_proxy
...
@@ -20,22 +20,27 @@ class ViewerAppAPI_proxy
protected:
protected:
ViewerAppAPI_proxy
(
sdbus
::
IProxy
&
proxy
)
ViewerAppAPI_proxy
(
sdbus
::
IProxy
&
proxy
)
:
proxy_
(
proxy
)
:
proxy_
(
&
proxy
)
{
{
}
}
ViewerAppAPI_proxy
(
const
ViewerAppAPI_proxy
&
)
=
delete
;
ViewerAppAPI_proxy
&
operator
=
(
const
ViewerAppAPI_proxy
&
)
=
delete
;
ViewerAppAPI_proxy
(
ViewerAppAPI_proxy
&&
)
=
default
;
ViewerAppAPI_proxy
&
operator
=
(
ViewerAppAPI_proxy
&&
)
=
default
;
~
ViewerAppAPI_proxy
()
=
default
;
~
ViewerAppAPI_proxy
()
=
default
;
public
:
public
:
bool
GoSLURL
(
const
std
::
string
&
slurl
)
bool
GoSLURL
(
const
std
::
string
&
slurl
)
{
{
bool
result
;
bool
result
;
proxy_
.
callMethod
(
"GoSLURL"
).
onInterface
(
INTERFACE_NAME
).
withArguments
(
slurl
).
storeResultsTo
(
result
);
proxy_
->
callMethod
(
"GoSLURL"
).
onInterface
(
INTERFACE_NAME
).
withArguments
(
slurl
).
storeResultsTo
(
result
);
return
result
;
return
result
;
}
}
private
:
private
:
sdbus
::
IProxy
&
proxy_
;
sdbus
::
IProxy
*
proxy_
;
};
};
}}
// namespaces
}}
// namespaces
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llappviewerlinux_api-server-glue.h
+
8
−
3
View file @
de484631
...
@@ -20,18 +20,23 @@ class ViewerAppAPI_adaptor
...
@@ -20,18 +20,23 @@ class ViewerAppAPI_adaptor
protected:
protected:
ViewerAppAPI_adaptor
(
sdbus
::
IObject
&
object
)
ViewerAppAPI_adaptor
(
sdbus
::
IObject
&
object
)
:
object_
(
object
)
:
object_
(
&
object
)
{
{
object_
.
registerMethod
(
"GoSLURL"
).
onInterface
(
INTERFACE_NAME
).
withInputParamNames
(
"slurl"
).
withOutputParamNames
(
"success_ret"
).
implementedAs
([
this
](
const
std
::
string
&
slurl
){
return
this
->
GoSLURL
(
slurl
);
});
object_
->
registerMethod
(
"GoSLURL"
).
onInterface
(
INTERFACE_NAME
).
withInputParamNames
(
"slurl"
).
withOutputParamNames
(
"success_ret"
).
implementedAs
([
this
](
const
std
::
string
&
slurl
){
return
this
->
GoSLURL
(
slurl
);
});
}
}
ViewerAppAPI_adaptor
(
const
ViewerAppAPI_adaptor
&
)
=
delete
;
ViewerAppAPI_adaptor
&
operator
=
(
const
ViewerAppAPI_adaptor
&
)
=
delete
;
ViewerAppAPI_adaptor
(
ViewerAppAPI_adaptor
&&
)
=
default
;
ViewerAppAPI_adaptor
&
operator
=
(
ViewerAppAPI_adaptor
&&
)
=
default
;
~
ViewerAppAPI_adaptor
()
=
default
;
~
ViewerAppAPI_adaptor
()
=
default
;
private
:
private
:
virtual
bool
GoSLURL
(
const
std
::
string
&
slurl
)
=
0
;
virtual
bool
GoSLURL
(
const
std
::
string
&
slurl
)
=
0
;
private
:
private
:
sdbus
::
IObject
&
object_
;
sdbus
::
IObject
*
object_
;
};
};
}}
// namespaces
}}
// namespaces
...
...
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