summaryrefslogtreecommitdiffstats
path: root/ppapi/generators/test_cgen_range/versions.h
blob: 92b5324983eb830acfdeac7dd9b5994da971cf56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* From test_cgen_range/versions.idl modified Wed Aug 24 19:49:19 2011. */

#ifndef PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_
#define PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_

#include "ppapi/c/pp_macros.h"

#define BAR_INTERFACE_0_0 "Bar;0.0"
#define BAR_INTERFACE_1_0 "Bar;1.0"
#define BAR_INTERFACE_2_0 "Bar;2.0"
#define BAR_INTERFACE BAR_INTERFACE_2_0

/**
 * @file
 * File Comment. */


/**
 * @addtogroup Structs
 * @{
 */
/* Bogus Struct Foo */
struct Foo {
  /**
   * Comment for function x,y,z
   */
  int32_t (*Foo)(int32_t x, int32_t y, int32_t z);
};
struct Foo_0_0 {
  int32_t (*Foo)(int32_t x);
};
struct Foo_1_0 {
  int32_t (*Foo)(int32_t x, int32_t y);
};
/**
 * @}
 */

/**
 * @addtogroup Interfaces
 * @{
 */
/* Inherit revisions thanks to Foo */
struct Bar {
  /**
   * Comment for function
   */
  int32_t (*UseFoo)( struct Foo* val);
};
struct Bar_0_0 {
  int32_t (*UseFoo)( struct Foo* val);
};
struct Bar_1_0 {
  int32_t (*UseFoo)( struct Foo* val);
};
/**
 * @}
 */

#endif  /* PPAPI_C_TEST_CGEN_RANGE_VERSIONS_H_ */