OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 /* From ppb_mojo.idl modified Wed Sep 24 14:54:16 2014. */ |
| 7 |
| 8 #ifndef PPAPI_C_PPB_MOJO_H_ |
| 9 #define PPAPI_C_PPB_MOJO_H_ |
| 10 |
| 11 #include "ppapi/c/pp_completion_callback.h" |
| 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_stdint.h" |
| 15 |
| 16 #define PPB_MOJO_INTERFACE_0_1 "PPB_Mojo;0.1" |
| 17 #define PPB_MOJO_INTERFACE PPB_MOJO_INTERFACE_0_1 |
| 18 |
| 19 /** |
| 20 * @file |
| 21 */ |
| 22 |
| 23 |
| 24 /** |
| 25 * @addtogroup Interfaces |
| 26 * @{ |
| 27 */ |
| 28 /* An interface to expose Mojo services to pepper plugins. */ |
| 29 struct PPB_Mojo_0_1 { |
| 30 /* |
| 31 * Connects to the given service_name, and provides a mojo_handle on success. |
| 32 * |
| 33 * TODO(teravest): It'd be nice to use something more typesafe than int32_t |
| 34 * here. |
| 35 */ |
| 36 int32_t (*GetHandle)(PP_Instance instance, |
| 37 uint32_t* mojo_handle, |
| 38 struct PP_CompletionCallback callback); |
| 39 }; |
| 40 |
| 41 typedef struct PPB_Mojo_0_1 PPB_Mojo; |
| 42 /** |
| 43 * @} |
| 44 */ |
| 45 |
| 46 #endif /* PPAPI_C_PPB_MOJO_H_ */ |
| 47 |
OLD | NEW |