ari_resource.c.mustache 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #include "resource_{{c_name}}.h"
  27. {{#apis}}
  28. {{#operations}}
  29. {{#is_req}}
  30. void ast_ari_{{c_name}}_{{c_nickname}}(struct ast_variable *headers,
  31. struct ast_ari_{{c_name}}_{{c_nickname}}_args *args,
  32. struct ast_ari_response *response)
  33. {
  34. ast_log(LOG_ERROR, "TODO: ast_ari_{{c_name}}_{{c_nickname}}\n");
  35. }
  36. {{/is_req}}
  37. {{#is_websocket}}
  38. void ast_ari_websocket_{{c_name}}_{{c_nickname}}(struct ast_ari_websocket_session *session,
  39. struct ast_variable *headers,
  40. struct ast_ari_{{c_name}}_{{c_nickname}}_args *args)
  41. {
  42. ast_log(LOG_ERROR, "TODO: ast_ari_websocket_{{c_name}}_{{c_nickname}}\n");
  43. }
  44. {{/is_websocket}}
  45. {{/operations}}
  46. {{/apis}}
  47. {{/api_declaration}}