| OLD | NEW |
| (Empty) |
| 1 {%- macro declare_params(prefix, parameters) %} | |
| 2 {%- for param in parameters -%} | |
| 3 {{param.kind|cpp_const_wrapper_type}} {{prefix}}{{param.name}} | |
| 4 {%- if not loop.last %}, {% endif %} | |
| 5 {%- endfor %} | |
| 6 {%- endmacro %} | |
| 7 | |
| 8 {%- macro declare_callback(method) -%} | |
| 9 mojo::Callback<void( | |
| 10 {%- for param in method.response_parameters -%} | |
| 11 {{param.kind|cpp_result_type}} | |
| 12 {%- if not loop.last %}, {% endif %} | |
| 13 {%- endfor -%} | |
| 14 )> | |
| 15 {%- endmacro -%} | |
| 16 | |
| 17 {%- macro declare_request_params(prefix, method) -%} | |
| 18 {{declare_params(prefix, method.parameters)}} | |
| 19 {%- if method.response_parameters != None -%} | |
| 20 {%- if method.parameters %}, {% endif %} | |
| 21 const {{declare_callback(method)}}& callback | |
| 22 {%- endif -%} | |
| 23 {%- endmacro -%} | |
| OLD | NEW |