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
4 * found in the LICENSE file.
7 /* From test_cgen/structs.idl modified Wed Nov 21 11:02:50 2012. */
9 #ifndef PPAPI_C_TEST_CGEN_STRUCTS_H_
10 #define PPAPI_C_TEST_CGEN_STRUCTS_H_
12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/test_cgen/stdint.h"
17 * This file will test that the IDL snippet matches the comment.
22 * @addtogroup Typedefs
25 /* typedef uint8_t s_array[3]; */
26 typedef uint8_t s_array
[3];
35 /* typedef enum { esv1 = 1, esv2 = 2 } senum; */
48 /* struct st1 { int32_t i; senum j; }; */
54 /* struct st2 { s_array pixels[640][480]; }; */
56 s_array pixels
[640][480];
63 * @addtogroup Typedefs
66 /* typedef float (*func_t)(const s_array data); */
67 typedef float (*func_t
)(const s_array data
);
69 /* typedef func_t (*findfunc_t)(const char* x); */
70 typedef func_t (*findfunc_t
)(const char* x
);
81 * s_array screen[480][640];
86 s_array screen
[480][640];
93 #endif /* PPAPI_C_TEST_CGEN_STRUCTS_H_ */