resource_sounds.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. /*! \file
  19. *
  20. * \brief Generated file - declares stubs to be implemented in
  21. * res/ari/resource_sounds.c
  22. *
  23. * Sound resources
  24. *
  25. * \author David M. Lee, II <dlee@digium.com>
  26. */
  27. /*
  28. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  29. * !!!!! DO NOT EDIT !!!!!
  30. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  31. * This file is generated by a mustache template. Please see the original
  32. * template in rest-api-templates/ari_resource.h.mustache
  33. */
  34. #ifndef _ASTERISK_RESOURCE_SOUNDS_H
  35. #define _ASTERISK_RESOURCE_SOUNDS_H
  36. #include "asterisk/ari.h"
  37. /*! Argument struct for ast_ari_sounds_list() */
  38. struct ast_ari_sounds_list_args {
  39. /*! Lookup sound for a specific language. */
  40. const char *lang;
  41. /*! Lookup sound in a specific format. */
  42. const char *format;
  43. };
  44. /*!
  45. * \brief Body parsing function for /sounds.
  46. * \param body The JSON body from which to parse parameters.
  47. * \param[out] args The args structure to parse into.
  48. * \retval zero on success
  49. * \retval non-zero on failure
  50. */
  51. int ast_ari_sounds_list_parse_body(
  52. struct ast_json *body,
  53. struct ast_ari_sounds_list_args *args);
  54. /*!
  55. * \brief List all sounds.
  56. *
  57. * \param headers HTTP headers
  58. * \param args Swagger parameters
  59. * \param[out] response HTTP response
  60. */
  61. void ast_ari_sounds_list(struct ast_variable *headers, struct ast_ari_sounds_list_args *args, struct ast_ari_response *response);
  62. /*! Argument struct for ast_ari_sounds_get() */
  63. struct ast_ari_sounds_get_args {
  64. /*! Sound's id */
  65. const char *sound_id;
  66. };
  67. /*!
  68. * \brief Get a sound's details.
  69. *
  70. * \param headers HTTP headers
  71. * \param args Swagger parameters
  72. * \param[out] response HTTP response
  73. */
  74. void ast_ari_sounds_get(struct ast_variable *headers, struct ast_ari_sounds_get_args *args, struct ast_ari_response *response);
  75. #endif /* _ASTERISK_RESOURCE_SOUNDS_H */