| Index: mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
| index 7644b2ef0440200b4b5d8844de69e55dbe9a9a8c..a6dc1cf7ed52f330559ea986e6520dba50511ad9 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
| @@ -21,3 +21,14 @@ mojo::Callback<void(
|
| const {{method.name}}Callback& callback
|
| {%- endif -%}
|
| {%- endmacro -%}
|
| +
|
| +{%- macro declare_sync_method_params(prefix, method) -%}
|
| +{{declare_params(prefix, method.parameters)}}
|
| +{%- if method.response_parameters %}
|
| +{%- if method.parameters %}, {% endif %}
|
| +{%- for param in method.response_parameters -%}
|
| +{{param.kind|cpp_wrapper_type}}* {{prefix}}{{param.name}}
|
| +{%- if not loop.last %}, {% endif %}
|
| +{%- endfor %}
|
| +{%- endif -%}
|
| +{%- endmacro -%}
|
|
|