#define TTS_GLOBAL_ENGINE_BASE "/etc/skel/share/.voice/tts/1.0"
#define TTS_GLOBAL_ENGINE_INFO "/etc/skel/share/.voice/tts/1.0/engine-info"
+#define TTS_METADATA_NAME "http://tizen.org/metadata/tts-engine/name"
#define TTS_METADATA_LANGUAGE "http://tizen.org/metadata/tts-engine/language"
#define TTS_METADATA_CREDENTIAL_REQUIRED "http://tizen.org/metadata/tts-engine/credential-required"
-
+#define TTS_METADATA_SETTING "http://tizen.org/metadata/tts-engine/setting"
typedef struct metadata {
const char *key;
xmlDocSetRootElement(g_doc, root);
/* Save name */
- cur = xmlNewNode(NULL, (const xmlChar*)TTS_TAG_ENGINE_NAME);
- xmlNodeSetContent(cur, (const xmlChar*)pkgid);
- xmlAddChild(root, cur);
+// cur = xmlNewNode(NULL, (const xmlChar*)TTS_TAG_ENGINE_NAME);
+// xmlNodeSetContent(cur, (const xmlChar*)pkgid);
+// xmlAddChild(root, cur);
iter = g_list_first(list);
cur = xmlNewNode(NULL, (const xmlChar*)TTS_TAG_ENGINE_CREDENTIAL);
xmlNodeSetContent(cur, (const xmlChar*)md->value);
xmlAddChild(root, cur);
+ } else if (!strcmp(md->key, TTS_METADATA_SETTING)) {
+ cur = xmlNewNode(NULL, (const xmlChar*)TTS_TAG_ENGINE_SETTING);
+ xmlNodeSetContent(cur, (const xmlChar*)md->value);
+ xmlAddChild(root, cur);
+ } else if (!strcmp(md->key, TTS_METADATA_NAME)) {
+ cur = xmlNewNode(NULL, (const xmlChar*)TTS_TAG_ENGINE_NAME);
+ xmlNodeSetContent(cur, (const xmlChar*)md->value);
+ xmlAddChild(root, cur);
} else {
LOGW("[WARNING] Unknown metadata type");
}