summaryrefslogtreecommitdiff
path: root/generator/templates/functions/template.m.jinja2
blob: 34fc557136cd98634d193a2cb15a7af5142e176f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{#- 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 %}
- (instancetype)init {
    self = [super initWithName:SDLRPCFunctionName{{origin}}];
    if (!self) {
        return nil;
    }
    return self;
}
{{super()}}
{%- endblock -%}
{% set parameters_store = 'parameters' %}