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

Unified Diff: mojo/public/platform/native/system_thunks.c

Issue 2000253002: Add thunks for MojoDuplicateHandle[WithReducedRights](). (Closed) Base URL: https://github.com/domokit/mojo.git@work792_dup_handle_1
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/public/platform/native/system_thunks.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/platform/native/system_thunks.c
diff --git a/mojo/public/platform/native/system_thunks.c b/mojo/public/platform/native/system_thunks.c
index 9ed890fb53a0e6caff55a4a247d56a4bb13b71e2..6cff1cbaa3d5343148d33b0cf2a5feb8f47dfedc 100644
--- a/mojo/public/platform/native/system_thunks.c
+++ b/mojo/public/platform/native/system_thunks.c
@@ -25,6 +25,20 @@ MojoResult MojoGetRights(MojoHandle handle, MojoHandleRights* rights) {
return g_thunks.GetRights(handle, rights);
}
+MojoResult MojoDuplicateHandleWithReducedRights(
+ MojoHandle handle,
+ MojoHandleRights rights_to_remove,
+ MojoHandle* new_handle) {
+ assert(g_thunks.DuplicateHandleWithReducedRights);
+ return g_thunks.DuplicateHandleWithReducedRights(handle, rights_to_remove,
+ new_handle);
+}
+
+MojoResult MojoDuplicateHandle(MojoHandle handle, MojoHandle* new_handle) {
+ assert(g_thunks.DuplicateHandle);
+ return g_thunks.DuplicateHandle(handle, new_handle);
+}
+
MojoResult MojoWait(MojoHandle handle,
MojoHandleSignals signals,
MojoDeadline deadline,
« no previous file with comments | « mojo/public/platform/native/system_thunks.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698