ari_resource.c.mustache 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. /*! \file
  20. *
  21. * \brief {{{resource_path}}} implementation- {{{description}}}
  22. *
  23. * \author {{{author}}}
  24. */
  25. #include "asterisk.h"
  26. ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
  27. #include "resource_{{c_name}}.h"
  28. {{#apis}}
  29. {{#operations}}
  30. {{#is_req}}
  31. void ast_ari_{{c_name}}_{{c_nickname}}(struct ast_variable *headers,
  32. struct ast_ari_{{c_name}}_{{c_nickname}}_args *args,
  33. struct ast_ari_response *response)
  34. {
  35. ast_log(LOG_ERROR, "TODO: ast_ari_{{c_name}}_{{c_nickname}}\n");
  36. }
  37. {{/is_req}}
  38. {{#is_websocket}}
  39. void ast_ari_websocket_{{c_name}}_{{c_nickname}}(struct ast_ari_websocket_session *session,
  40. struct ast_variable *headers,
  41. struct ast_ari_{{c_name}}_{{c_nickname}}_args *args)
  42. {
  43. ast_log(LOG_ERROR, "TODO: ast_ari_websocket_{{c_name}}_{{c_nickname}}\n");
  44. }
  45. {{/is_websocket}}
  46. {{/operations}}
  47. {{/apis}}
  48. {{/api_declaration}}