basic_test_types.idl revision 2a99a7e74a7f215066514fe81d2bfa6639d9eddd
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
3 * found in the LICENSE file.
4 */
5
6/**
7 * This file defines some basic types for use in testing.
8 */
9
10label Chrome {
11  M13 = 0.0,
12  M14 = 1.0,
13  M15 = 2.0
14};
15
16[version=0.0]
17describe {
18  /** Standard Ints. */
19  int8_t;
20  int16_t;
21  int32_t;
22  int64_t;
23  uint8_t;
24  uint16_t;
25  uint32_t;
26  uint64_t;
27  /** Small and large floats. */
28  double_t;
29  float_t;
30
31  /** Native file handle (int). */
32  handle_t;
33
34  /** Interface object (void *). */
35  interface_t;
36
37  /** Used for padding, should be (u)int8_t */
38  char;
39
40  /** Pointer to memory (void *). */
41  mem_t;
42
43  /** Pointer to null terminated string (char *). */
44  str_t;
45
46  /** No return value. */
47  void;
48
49  /** Pointer to pointer to memory (void **). */
50  blob_t;
51
52  /** Pepper types */
53  PP_Bool;
54  PP_Instance;
55  PP_Resource;
56  PP_Var;
57};
58
59