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 test_cgen_range/versions.idl modified Wed Aug 24 10:35:01 2011. */ | 6 /* From test_cgen_range/versions.idl modified Wed Aug 24 19:49:19 2011. */ |
7 | 7 |
8 #ifndef PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_ | 8 #ifndef PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_ |
9 #define PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_ | 9 #define PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_ |
10 | 10 |
11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
12 | 12 |
| 13 #define BAR_INTERFACE_0_0 "Bar;0.0" |
| 14 #define BAR_INTERFACE_1_0 "Bar;1.0" |
| 15 #define BAR_INTERFACE_2_0 "Bar;2.0" |
| 16 #define BAR_INTERFACE BAR_INTERFACE_2_0 |
| 17 |
13 /** | 18 /** |
14 * @file | 19 * @file |
15 * File Comment. */ | 20 * File Comment. */ |
16 | 21 |
17 | 22 |
18 /** | 23 /** |
19 * @addtogroup Structs | 24 * @addtogroup Structs |
20 * @{ | 25 * @{ |
21 */ | 26 */ |
22 /* Bogus Struct */ | 27 /* Bogus Struct Foo */ |
23 struct PP_Size { | 28 struct Foo { |
24 /** | 29 /** |
25 * Comment for function | 30 * Comment for function x,y,z |
26 */ | |
27 int32_t (*Foo)(int32_t x); | |
28 /** | |
29 * Comment for function | |
30 */ | |
31 int32_t (*Foo)(int32_t x, int32_t y); | |
32 /** | |
33 * Comment for function | |
34 */ | 31 */ |
35 int32_t (*Foo)(int32_t x, int32_t y, int32_t z); | 32 int32_t (*Foo)(int32_t x, int32_t y, int32_t z); |
36 }; | 33 }; |
| 34 struct Foo_0_0 { |
| 35 int32_t (*Foo)(int32_t x); |
| 36 }; |
| 37 struct Foo_1_0 { |
| 38 int32_t (*Foo)(int32_t x, int32_t y); |
| 39 }; |
37 /** | 40 /** |
38 * @} | 41 * @} |
39 */ | 42 */ |
| 43 |
| 44 /** |
| 45 * @addtogroup Interfaces |
| 46 * @{ |
| 47 */ |
| 48 /* Inherit revisions thanks to Foo */ |
| 49 struct Bar { |
| 50 /** |
| 51 * Comment for function |
| 52 */ |
| 53 int32_t (*UseFoo)( struct Foo* val); |
| 54 }; |
| 55 struct Bar_0_0 { |
| 56 int32_t (*UseFoo)( struct Foo* val); |
| 57 }; |
| 58 struct Bar_1_0 { |
| 59 int32_t (*UseFoo)( struct Foo* val); |
| 60 }; |
| 61 /** |
| 62 * @} |
| 63 */ |
40 | 64 |
41 #endif /* PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_ */ | 65 #endif /* PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_ */ |
42 | 66 |
OLD | NEW |