summaryrefslogtreecommitdiff
path: root/generator/templates/functions/template.m.jinja2
blob: 9809b8df2dce47b5f6402f58be13d54a9b3971c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{#- This template creates RPC requests, responses, and notification .m files -#}
{% extends "base_struct_function.m.jinja2" %}
{% block imports %}
{{super()}}
#import "SDLRPCFunctionNames.h"
#import "SDLRPCParameterNames.h"
{%- endblock %}
{% block constructors %}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
- (instancetype)init {
    self = [super initWithName:SDLRPCFunctionName{{origin}}];
    if (!self) {
        return nil;
    }
    return self;
}
#pragma clang diagnostic pop
{{super()}}
{%- endblock -%}
{% set parameters_store = 'parameters' %}