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

Side by Side Diff: ppapi/generators/test_gen_pnacl/test_interfaces.idl

Issue 9110045: Change IDL shim/wrapper generator to use version numbers in struct names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/generators/idl_gen_wrapper.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * This file will test that the pnacl-generated wrapper functions match 8 * This file will test that the pnacl-generated wrapper functions match
9 * the comments in this IDL. 9 * the comments in this IDL.
10 */ 10 */
(...skipping 21 matching lines...) Expand all
32 }; 32 };
33 33
34 [union, passByValue, returnByValue] struct some_union { 34 [union, passByValue, returnByValue] struct some_union {
35 mem_t X; 35 mem_t X;
36 int32_t Y; 36 int32_t Y;
37 }; 37 };
38 38
39 /* 39 /*
40 * static __attribute__((pnaclcall)) int32_t 40 * static __attribute__((pnaclcall)) int32_t
41 * Pnacl_M15_PPB_Iface_struct_wrap_foo1(int32_t a, struct some_struct b) { 41 * Pnacl_M15_PPB_Iface_struct_wrap_foo1(int32_t a, struct some_struct b) {
42 * const struct PPB_Iface_struct_wrap *iface = 42 * const struct PPB_Iface_struct_wrap_2_0 *iface =
43 * Pnacl_WrapperInfo_PPB_Iface_struct_wrap.real_iface; 43 * Pnacl_WrapperInfo_PPB_Iface_struct_wrap_2_0.real_iface;
44 * return iface->foo1(a, b); 44 * return iface->foo1(a, b);
45 * } 45 * }
46 */ 46 */
47 [version=2.0] 47 [version=2.0]
48 interface PPB_Iface_struct_wrap { 48 interface PPB_Iface_struct_wrap {
49 int32_t foo1(int32_t a, [in] some_struct b); 49 int32_t foo1(int32_t a, [in] some_struct b);
50 }; 50 };
51 51
52 /* 52 /*
53 * static __attribute__((pnaclcall)) int32_t 53 * static __attribute__((pnaclcall)) int32_t
54 * Pnacl_M15_PPB_Iface_union_wrap_foo1(int32_t a, union some_union b) { 54 * Pnacl_M15_PPB_Iface_union_wrap_foo1(int32_t a, union some_union b) {
55 * const struct PPB_Iface_union_wrap *iface = 55 * const struct PPB_Iface_union_wrap_2_0 *iface =
56 * Pnacl_WrapperInfo_PPB_Iface_union_wrap.real_iface; 56 * Pnacl_WrapperInfo_PPB_Iface_union_wrap_2_0.real_iface;
57 * return iface->foo1(a, b); 57 * return iface->foo1(a, b);
58 * } 58 * }
59 */ 59 */
60 [version=2.0] 60 [version=2.0]
61 interface PPB_Iface_union_wrap { 61 interface PPB_Iface_union_wrap {
62 int32_t foo1(int32_t a, [in] some_union b); 62 int32_t foo1(int32_t a, [in] some_union b);
63 }; 63 };
64 64
65 65
66 [version=2.0] 66 [version=2.0]
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 [version=1.0] 142 [version=1.0]
143 int32_t foo1([in] some_struct[] a); 143 int32_t foo1([in] some_struct[] a);
144 144
145 /* Not generating wrapper interface for PPP_SomeWrap */ 145 /* Not generating wrapper interface for PPP_SomeWrap */
146 [version=2.0] 146 [version=2.0]
147 int32_t foo1([in] some_struct2 a); 147 int32_t foo1([in] some_struct2 a);
148 [version=2.0] 148 [version=2.0]
149 void foo2([in] int32_t a); 149 void foo2([in] int32_t a);
150 }; 150 };
OLDNEW
« no previous file with comments | « ppapi/generators/idl_gen_wrapper.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698