Debian Codegraph @

rest-api-templates/ari_resource.c.mustache

raw
1 {{#api_declaration}}
2 /*
3 * Asterisk -- An open source telephony toolkit.
4 *
5 * {{{copyright}}}
6 *
7 * {{{author}}}
8 *
9 * See http://www.asterisk.org for more information about
10 * the Asterisk project. Please do not directly contact
11 * any of the maintainers of this project for assistance;
12 * the project provides a web site, mailing lists and IRC
13 * channels for your use.
14 *
15 * This program is free software, distributed under the terms of
16 * the GNU General Public License Version 2. See the LICENSE file
17 * at the top of the source tree.
18 */
19
20 /*! \file
21 *
22 * \brief {{{resource_path}}} implementation- {{{description}}}
23 *
24 * \author {{{author}}}
25 */
26
27 #include "asterisk.h"
28
29 #include "resource_{{c_name}}.h"
30
31 {{#apis}}
32 {{#operations}}
33 {{#is_req}}
34 void ast_ari_{{c_name}}_{{c_nickname}}(struct ast_variable *headers,
35 struct ast_ari_{{c_name}}_{{c_nickname}}_args *args,
36 struct ast_ari_response *response)
37 {
38 ast_log(LOG_ERROR, "TODO: ast_ari_{{c_name}}_{{c_nickname}}\n");
39 }
40 {{/is_req}}
41 {{#is_websocket}}
42 void ast_ari_websocket_{{c_name}}_{{c_nickname}}(struct ast_ari_websocket_session *session,
43 struct ast_variable *headers,
44 struct ast_ari_{{c_name}}_{{c_nickname}}_args *args)
45 {
46 ast_log(LOG_ERROR, "TODO: ast_ari_websocket_{{c_name}}_{{c_nickname}}\n");
47 }
48 {{/is_websocket}}
49 {{/operations}}
50 {{/apis}}
51 {{/api_declaration}}