Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Show more breadcrumbs
many-archive
Suyu
Commits
05fee702
There was an error fetching the commit references. Please try again later.
Commit
05fee702
authored
7 years ago
by
Yuri Kunde Schlesner
Browse files
Options
Downloads
Patches
Plain Diff
Kernel: Add methods in HLERequestContext abstracting handle creation
parent
20e5abb3
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
src/core/hle/kernel/hle_ipc.cpp
+9
-0
9 additions, 0 deletions
src/core/hle/kernel/hle_ipc.cpp
src/core/hle/kernel/hle_ipc.h
+3
-0
3 additions, 0 deletions
src/core/hle/kernel/hle_ipc.h
with
12 additions
and
0 deletions
src/core/hle/kernel/hle_ipc.cpp
+
9
−
0
View file @
05fee702
...
...
@@ -5,6 +5,7 @@
#include
<boost/range/algorithm_ext/erase.hpp>
#include
"common/assert.h"
#include
"common/common_types.h"
#include
"core/hle/kernel/handle_table.h"
#include
"core/hle/kernel/hle_ipc.h"
#include
"core/hle/kernel/kernel.h"
#include
"core/hle/kernel/server_session.h"
...
...
@@ -23,4 +24,12 @@ void SessionRequestHandler::ClientDisconnected(SharedPtr<ServerSession> server_s
HLERequestContext
::~
HLERequestContext
()
=
default
;
SharedPtr
<
Object
>
HLERequestContext
::
GetIncomingHandle
(
Handle
id_from_cmdbuf
)
const
{
return
Kernel
::
g_handle_table
.
GetGeneric
(
id_from_cmdbuf
);
}
Handle
HLERequestContext
::
AddOutgoingHandle
(
SharedPtr
<
Object
>
object
)
{
return
Kernel
::
g_handle_table
.
Create
(
object
).
Unwrap
();
}
}
// namespace Kernel
This diff is collapsed.
Click to expand it.
src/core/hle/kernel/hle_ipc.h
+
3
−
0
View file @
05fee702
...
...
@@ -80,6 +80,9 @@ public:
return
session
;
}
SharedPtr
<
Object
>
GetIncomingHandle
(
Handle
id_from_cmdbuf
)
const
;
Handle
AddOutgoingHandle
(
SharedPtr
<
Object
>
object
);
private
:
friend
class
Service
::
ServiceFrameworkBase
;
...
...
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