Index: mojo/platform_handle/platform_handle_functions.h |
diff --git a/mojo/platform_handle/platform_handle_functions.h b/mojo/platform_handle/platform_handle_functions.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..424659d6f436b08b1ddc835fb679bbe4559833b4 |
--- /dev/null |
+++ b/mojo/platform_handle/platform_handle_functions.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_FUNCTIONS_H_ |
+#define MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_FUNCTIONS_H_ |
+ |
+#include "mojo/platform_handle/platform_handle.h" |
+#include "mojo/platform_handle/platform_handle_exports.h" |
+#include "third_party/mojo/src/mojo/public/c/system/types.h" |
+ |
+extern "C" { |
+ |
+// Wraps |platform_handle| in a MojoHandle so that it can trasported, returns |
viettrungluu
2015/05/01 17:05:51
trasported -> transported
sky
2015/05/01 17:18:45
Done.
|
+// true on success. This takes ownership of |platform_handle|, regardless of |
+// whether this succeeds. |
+PLATFORM_HANDLE_EXPORT bool MojoCreatePlatformHandleWrapper( |
viettrungluu
2015/05/01 17:05:51
Note that this is dubious as a C API, since C90 do
sky
2015/05/01 17:18:45
Done.
|
+ MojoPlatformHandle platform_handle, |
+ MojoHandle* wrapper); |
+ |
+PLATFORM_HANDLE_EXPORT bool MojoExtractPlatformHandle( |
+ MojoHandle wrapper, |
+ MojoPlatformHandle* platform_handle); |
+ |
+} // extern "C" |
+ |
+#endif // MOJO_PLATFORM_HANDLE_PLATFORM_HANDLE_FUNCTIONS_H_ |