Debian Codegraph @

res/ari/resource_playbacks.h

raw symbols SCIP
1 /*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2012 - 2013, Digium, Inc.
5 *
6 * David M. Lee, II <[email protected]>
7 *
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
13 *
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
17 */
18
19 /*! \file
20 *
21 * \brief Generated file - declares stubs to be implemented in
22 * res/ari/resource_playbacks.c
23 *
24 * Playback control resources
25 *
26 * \author David M. Lee, II <[email protected]>
27 */
28
29 /*
30 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31 * !!!!! DO NOT EDIT !!!!!
32 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
33 * This file is generated by a mustache template. Please see the original
34 * template in rest-api-templates/ari_resource.h.mustache
35 */
36
37 #ifndef _ASTERISK_RESOURCE_PLAYBACKS_H
38 #define _ASTERISK_RESOURCE_PLAYBACKS_H
39
40 #include "asterisk/ari.h"
41
42 /*! Argument struct for ast_ari_playbacks_get() */
43 struct ast_ari_playbacks_get_args {
44 /*! Playback's id */
45 const char *playback_id;
46 };
47 /*!
48 * \brief Get a playback's details.
49 *
50 * \param headers HTTP headers
51 * \param args Swagger parameters
52 * \param[out] response HTTP response
53 */
54 void ast_ari_playbacks_get(struct ast_variable *headers, struct ast_ari_playbacks_get_args *args, struct ast_ari_response *response);
55 /*! Argument struct for ast_ari_playbacks_stop() */
56 struct ast_ari_playbacks_stop_args {
57 /*! Playback's id */
58 const char *playback_id;
59 };
60 /*!
61 * \brief Stop a playback.
62 *
63 * \param headers HTTP headers
64 * \param args Swagger parameters
65 * \param[out] response HTTP response
66 */
67 void ast_ari_playbacks_stop(struct ast_variable *headers, struct ast_ari_playbacks_stop_args *args, struct ast_ari_response *response);
68 /*! Argument struct for ast_ari_playbacks_control() */
69 struct ast_ari_playbacks_control_args {
70 /*! Playback's id */
71 const char *playback_id;
72 /*! Operation to perform on the playback. */
73 const char *operation;
74 };
75 /*!
76 * \brief Body parsing function for /playbacks/{playbackId}/control.
77 * \param body The JSON body from which to parse parameters.
78 * \param[out] args The args structure to parse into.
79 * \retval zero on success
80 * \retval non-zero on failure
81 */
82 int ast_ari_playbacks_control_parse_body(
83 struct ast_json *body,
84 struct ast_ari_playbacks_control_args *args);
85
86 /*!
87 * \brief Control a playback.
88 *
89 * \param headers HTTP headers
90 * \param args Swagger parameters
91 * \param[out] response HTTP response
92 */
93 void ast_ari_playbacks_control(struct ast_variable *headers, struct ast_ari_playbacks_control_args *args, struct ast_ari_response *response);
94
95 #endif /* _ASTERISK_RESOURCE_PLAYBACKS_H */