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

Side by Side Diff: ppapi/c/dev/ppb_transport_dev.h

Issue 5674004: Add compile assertions to enforce the sizes of all structs and enums in the C... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef PPAPI_C_PPB_TRANSPORT_DEV_H_ 5 #ifndef PPAPI_C_PPB_TRANSPORT_DEV_H_
6 #define PPAPI_C_PPB_TRANSPORT_DEV_H_ 6 #define PPAPI_C_PPB_TRANSPORT_DEV_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_completion_callback.h" 9 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_module.h" 10 #include "ppapi/c/pp_module.h"
11 #include "ppapi/c/pp_instance.h" 11 #include "ppapi/c/pp_instance.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/pp_stdint.h" 13 #include "ppapi/c/pp_stdint.h"
14 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
15 15
16 #define PPB_TRANSPORT_DEV_INTERFACE "PPB_Transport;0.2" 16 #define PPB_TRANSPORT_DEV_INTERFACE "PPB_Transport;0.3"
17 17
18 struct PPB_Transport_Dev { 18 struct PPB_Transport_Dev {
19 // Creates a new transport object with the specified name 19 // Creates a new transport object with the specified name
20 // using the specified protocol. 20 // using the specified protocol.
21 PP_Resource (*CreateTransport)(PP_Module module, 21 PP_Resource (*CreateTransport)(PP_Module module,
22 const char* name, 22 const char* name,
23 const char* proto); 23 const char* proto);
24 24
25 // Returns PP_TRUE if resource is a Transport, PP_FALSE otherwise. 25 // Returns PP_TRUE if resource is a Transport, PP_FALSE otherwise.
26 PP_Bool (*IsTransport)(PP_Resource resource); 26 PP_Bool (*IsTransport)(PP_Resource resource);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 int32_t (*Send)(PP_Resource transport, 61 int32_t (*Send)(PP_Resource transport,
62 const void* data, 62 const void* data,
63 uint32_t len, 63 uint32_t len,
64 struct PP_CompletionCallback cb); 64 struct PP_CompletionCallback cb);
65 65
66 // Disconnects from the remote peer. 66 // Disconnects from the remote peer.
67 int32_t (*Close)(PP_Resource transport); 67 int32_t (*Close)(PP_Resource transport);
68 }; 68 };
69 69
70 #endif // PPAPI_C_PPB_TRANSPORT_DEV_H_ 70 #endif // PPAPI_C_PPB_TRANSPORT_DEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698