| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* From dev/ppb_transport_dev.idl modified Tue Oct 4 15:52:58 2011. */ | 6 /* From dev/ppb_transport_dev.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_TRANSPORT_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_TRANSPORT_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_TRANSPORT_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_TRANSPORT_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 * @{ | 104 * @{ |
| 105 */ | 105 */ |
| 106 /** | 106 /** |
| 107 * The transport interface provides peer-to-peer communication. | 107 * The transport interface provides peer-to-peer communication. |
| 108 * | 108 * |
| 109 * TODO(juberti): other getters/setters | 109 * TODO(juberti): other getters/setters |
| 110 * connect state | 110 * connect state |
| 111 * connect type, protocol | 111 * connect type, protocol |
| 112 * RTT | 112 * RTT |
| 113 */ | 113 */ |
| 114 struct PPB_Transport_Dev { | 114 struct PPB_Transport_Dev_0_7 { |
| 115 /** | 115 /** |
| 116 * Creates a new transport object with the specified name using the | 116 * Creates a new transport object with the specified name using the |
| 117 * specified protocol. | 117 * specified protocol. |
| 118 */ | 118 */ |
| 119 PP_Resource (*CreateTransport)(PP_Instance instance, | 119 PP_Resource (*CreateTransport)(PP_Instance instance, |
| 120 const char* name, | 120 const char* name, |
| 121 PP_TransportType type); | 121 PP_TransportType type); |
| 122 /** | 122 /** |
| 123 * Returns PP_TRUE if resource is a Transport, PP_FALSE otherwise. | 123 * Returns PP_TRUE if resource is a Transport, PP_FALSE otherwise. |
| 124 */ | 124 */ |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 */ | 169 */ |
| 170 int32_t (*Send)(PP_Resource transport, | 170 int32_t (*Send)(PP_Resource transport, |
| 171 const void* data, | 171 const void* data, |
| 172 uint32_t len, | 172 uint32_t len, |
| 173 struct PP_CompletionCallback cb); | 173 struct PP_CompletionCallback cb); |
| 174 /** | 174 /** |
| 175 * Disconnects from the remote peer. | 175 * Disconnects from the remote peer. |
| 176 */ | 176 */ |
| 177 int32_t (*Close)(PP_Resource transport); | 177 int32_t (*Close)(PP_Resource transport); |
| 178 }; | 178 }; |
| 179 |
| 180 typedef struct PPB_Transport_Dev_0_7 PPB_Transport_Dev; |
| 179 /** | 181 /** |
| 180 * @} | 182 * @} |
| 181 */ | 183 */ |
| 182 | 184 |
| 183 #endif /* PPAPI_C_DEV_PPB_TRANSPORT_DEV_H_ */ | 185 #endif /* PPAPI_C_DEV_PPB_TRANSPORT_DEV_H_ */ |
| 184 | 186 |
| OLD | NEW |