Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: mojo/edk/system/core.cc

Issue 1993983002: EDK: Add Core::GetRights(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/system/core.h ('k') | mojo/edk/system/core_test_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/core.cc
diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
index 65eb0733836af90e4935dcda1261fbfd74421d1e..f1c869f19e60f4232939bba869e55658d2dec2ce 100644
--- a/mojo/edk/system/core.cc
+++ b/mojo/edk/system/core.cc
@@ -175,6 +175,17 @@ MojoResult Core::Close(MojoHandle handle) {
return h.dispatcher->Close();
}
+MojoResult Core::GetRights(MojoHandle handle,
+ UserPointer<MojoHandleRights> rights) {
+ Handle h;
+ MojoResult result = GetHandle(handle, &h);
+ if (result != MOJO_RESULT_OK)
+ return result;
+
+ rights.Put(h.rights);
+ return MOJO_RESULT_OK;
+}
+
MojoResult Core::Wait(MojoHandle handle,
MojoHandleSignals signals,
MojoDeadline deadline,
« no previous file with comments | « mojo/edk/system/core.h ('k') | mojo/edk/system/core_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698