Asterisk - The Open Source Telephony Project GIT-master-f36a736
resource_sounds.h
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2012 - 2013, Digium, Inc.
5 *
6 * David M. Lee, II <dlee@digium.com>
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_sounds.c
23 *
24 * Sound resources
25 *
26 * \author David M. Lee, II <dlee@digium.com>
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_SOUNDS_H
38#define _ASTERISK_RESOURCE_SOUNDS_H
39
40#include "asterisk/ari.h"
41
42/*! Argument struct for ast_ari_sounds_list() */
44 /*! Lookup sound for a specific language. */
45 const char *lang;
46 /*! Lookup sound in a specific format. */
47 const char *format;
48};
49/*!
50 * \brief Body parsing function for /sounds.
51 * \param body The JSON body from which to parse parameters.
52 * \param[out] args The args structure to parse into.
53 * \retval zero on success
54 * \retval non-zero on failure
55 */
57 struct ast_json *body,
59
60/*!
61 * \brief List all sounds.
62 *
63 * \param headers HTTP headers
64 * \param args Swagger parameters
65 * \param[out] response HTTP response
66 */
67void ast_ari_sounds_list(struct ast_variable *headers, struct ast_ari_sounds_list_args *args, struct ast_ari_response *response);
68/*! Argument struct for ast_ari_sounds_get() */
70 /*! Sound's id */
71 const char *sound_id;
72};
73/*!
74 * \brief Get a sound's details.
75 *
76 * \param headers HTTP headers
77 * \param args Swagger parameters
78 * \param[out] response HTTP response
79 */
80void ast_ari_sounds_get(struct ast_variable *headers, struct ast_ari_sounds_get_args *args, struct ast_ari_response *response);
81
82#endif /* _ASTERISK_RESOURCE_SOUNDS_H */
Asterisk RESTful API hooks.
void ast_ari_sounds_get(struct ast_variable *headers, struct ast_ari_sounds_get_args *args, struct ast_ari_response *response)
Get a sound's details.
int ast_ari_sounds_list_parse_body(struct ast_json *body, struct ast_ari_sounds_list_args *args)
Body parsing function for /sounds.
void ast_ari_sounds_list(struct ast_variable *headers, struct ast_ari_sounds_list_args *args, struct ast_ari_response *response)
List all sounds.
Abstract JSON element (object, array, string, int, ...).
Structure for variables, used for configurations and for channel variables.
const char * args