diff options
author | Kwangyoun Kim <ky85.kim@samsung.com> | 2016-12-28 23:06:18 +0900 |
---|---|---|
committer | Kwangyoun Kim <ky85.kim@samsung.com> | 2016-12-28 23:08:34 +0900 |
commit | aff0743b37c29e520bfc6b5884b1cd71091cd9f4 (patch) | |
tree | d3180f0624d7a04976f05bf0f8a9fed56e360adc | |
parent | fc1349616e7720f393c449bf6211a9081bd1e007 (diff) | |
download | stt-tizen_3.0.m2.tar.gz stt-tizen_3.0.m2.tar.bz2 stt-tizen_3.0.m2.zip |
Update engine parsersubmit/tizen_3.0/20161228.082439submit/tizen_3.0.m2/20170104.093752accepted/tizen/3.0/wearable/20161229.054741accepted/tizen/3.0/tv/20161229.054730accepted/tizen/3.0/mobile/20161229.054719accepted/tizen/3.0/ivi/20161229.054753accepted/tizen/3.0/common/20161229.112902accepted/tizen/3.0.m2/wearable/20170104.143855accepted/tizen/3.0.m2/tv/20170104.143452accepted/tizen/3.0.m2/mobile/20170104.143014tizen_3.0.m2accepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobile
Change-Id: I6faf5e415c181d0c7f66875664206eed0ead870f
Signed-off-by: Kwangyoun Kim <ky85.kim@samsung.com>
-rw-r--r--[-rwxr-xr-x] | engine-parser/src/stt-engine-parser.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/engine-parser/src/stt-engine-parser.c b/engine-parser/src/stt-engine-parser.c index 79358eb..ecf2ba0 100755..100644 --- a/engine-parser/src/stt-engine-parser.c +++ b/engine-parser/src/stt-engine-parser.c @@ -64,6 +64,8 @@ #define STT_METADATA_LANGUAGE "http://tizen.org/metadata/stt-engine/language" #define STT_METADATA_SILENCE_DETECTION "http://tizen.org/metadata/stt-engine/silence-detection" #define STT_METADATA_CREDENTIAL_REQUIRED "http://tizen.org/metadata/stt-engine/credential-required" +#define STT_METADATA_ENGINE_SETTING "http://tizen.org/metadata/stt-engine/setting" +#define STT_METADATA_ENGINE_NAME "http://tizen.org/metadata/stt-engine/name" typedef struct metadata { const char *key; @@ -366,11 +368,6 @@ static int __write_metadata_inxml(const char *pkgid, const char *appid, GList *l } xmlDocSetRootElement(g_doc, root); - /* Save name */ - cur = xmlNewNode(NULL, (const xmlChar*)STT_TAG_ENGINE_NAME); - xmlNodeSetContent(cur, (const xmlChar*)pkgid); - xmlAddChild(root, cur); - iter = g_list_first(list); while (NULL != iter) { md = (metadata *)iter->data; @@ -386,6 +383,14 @@ static int __write_metadata_inxml(const char *pkgid, const char *appid, GList *l cur = xmlNewNode(NULL, (const xmlChar*)STT_TAG_ENGINE_CREDENTIAL); xmlNodeSetContent(cur, (const xmlChar*)md->value); xmlAddChild(root, cur); + } else if (!strcmp(md->key, STT_METADATA_ENGINE_SETTING)) { + cur = xmlNewNode(NULL, (const xmlChar*)STT_TAG_ENGINE_SETTING); + xmlNodeSetContent(cur, (const xmlChar*)md->value); + xmlAddChild(root, cur); + } else if (!strcmp(md->key, STT_METADATA_ENGINE_NAME)) { + cur = xmlNewNode(NULL, (const xmlChar*)STT_TAG_ENGINE_NAME); + xmlNodeSetContent(cur, (const xmlChar*)md->value); + xmlAddChild(root, cur); } else { LOGW("[WARNING] Unknown metadata type"); } |