From d56cbf43a0bda6ba2c4af02dd462ffff121a5cb4 Mon Sep 17 00:00:00 2001 From: "David M. Lee" <dlee@digium.com> Date: Mon, 24 Jun 2013 21:48:39 +0000 Subject: [PATCH] Fixed templates so that the changes from r392777 won't be overwritten the next time we run the generators. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392778 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/stasis_json/resource_sounds.h | 6 ++++-- rest-api-templates/res_stasis_http_resource.c.mustache | 3 +-- rest-api-templates/res_stasis_json_resource.c.mustache | 3 +-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/res/stasis_json/resource_sounds.h b/res/stasis_json/resource_sounds.h index 306e2e4a8f..d7f8714e69 100644 --- a/res/stasis_json/resource_sounds.h +++ b/res/stasis_json/resource_sounds.h @@ -41,10 +41,12 @@ * JSON models * * Sound - * - lang: string (required) * - text: string * - id: string (required) - * - formats: List[string] (required) + * - formats: List[FormatLangPair] (required) + * FormatLangPair + * - language: string (required) + * - format: string (required) */ #endif /* _ASTERISK_RESOURCE_SOUNDS_H */ diff --git a/rest-api-templates/res_stasis_http_resource.c.mustache b/rest-api-templates/res_stasis_http_resource.c.mustache index cf2876c0c5..805b2b781f 100644 --- a/rest-api-templates/res_stasis_http_resource.c.mustache +++ b/rest-api-templates/res_stasis_http_resource.c.mustache @@ -111,8 +111,7 @@ static int unload_module(void) return 0; } -AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, - "RESTful API module - {{{description}}}", +AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT, "RESTful API module - {{{description}}}", .load = load_module, .unload = unload_module, .nonoptreq = "res_stasis_http,res_stasis", diff --git a/rest-api-templates/res_stasis_json_resource.c.mustache b/rest-api-templates/res_stasis_json_resource.c.mustache index a55389c070..a25bdc2282 100644 --- a/rest-api-templates/res_stasis_json_resource.c.mustache +++ b/rest-api-templates/res_stasis_json_resource.c.mustache @@ -143,8 +143,7 @@ static int unload_module(void) return 0; } -AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER, - "Stasis JSON Generators and Validators - {{{description}}}", +AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS | AST_MODFLAG_LOAD_ORDER, "Stasis JSON Generators and Validators - {{{description}}}", .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, -- GitLab