summaryrefslogtreecommitdiffstats
path: root/mojo/public/bindings/generators/cpp_templates/module.h.tmpl
blob: 776d36738e3cbeb736b279bfd2aa0883225f8d61 (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
// Copyright 2013 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.

{%- set header_guard = "MOJO_GENERATED_BINDINGS_%s_%s_H_"|
        format(module_name|upper, module_name|upper) %}

#ifndef {{header_guard}}
#define {{header_guard}}

#include "mojo/public/bindings/lib/bindings.h"
#include "mojo/public/bindings/lib/message.h"
#include "{{include_prefix}}{{module_name|camel_to_underscores}}_internal.h"

namespace {{namespace}} {

{#--- Enums #}
{%  for enum in enums %}
{%    include "enum_declaration.tmpl" %}
{%- endfor %}

{#--- Structs #}
{%  for struct in structs %}
{%    include "wrapper_class_declaration.tmpl" %}
{%- endfor %}

{#--- Interfaces -#}
{%  for interface in interfaces %}
{%    include "interface_declaration.tmpl" %}
{%- endfor %}

{#--- Interface Proxies -#}
{%  for interface in interfaces %}
{%    include "interface_proxy_declaration.tmpl" %}
{%- endfor %}

{#--- Interface Stubs -#}
{%  for interface in interfaces %}
{%    include "interface_stub_declaration.tmpl" %}
{%- endfor %}

}  // namespace {{namespace}}

#endif  // {{header_guard}}