Add function to set credential 92/72792/2 accepted/tizen/common/20160609.150308 accepted/tizen/ivi/20160610.011017 accepted/tizen/mobile/20160610.011140 accepted/tizen/tv/20160610.011029 accepted/tizen/wearable/20160610.011040 submit/tizen/20160609.073038
authorWonnam Jang <wn.jang@samsung.com>
Thu, 2 Jun 2016 11:07:09 +0000 (20:07 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Thu, 9 Jun 2016 04:37:25 +0000 (13:37 +0900)
Change-Id: I6af8738a105fa5f6e2a075a234f17a6c12616335
Signed-off-by: Wonnam Jang <wn.jang@samsung.com>
src/plugin_internal.cpp
src/plugin_internal.h
src/ttsp.c

index 41c41fe..91879c7 100644 (file)
@@ -42,7 +42,7 @@ int plugin_Finalize(void)
 }
 
 int plugin_SynthesizeText(char const *pszLanguage, int eVoiceType_0,  char const *pszTextUtf8,
-                       int eSpeechSpeed_0, void* pUserParam)
+                       int eSpeechSpeed_0, const char* credential, void* pUserParam)
 {
        int iVoiceInfo   = -1;
        int eVoiceType   = eVoiceType_0;
@@ -134,6 +134,11 @@ int plugin_UnloadVoice(const char* language, int type)
        return 0;
 }
 
+bool plugin_NeedAppCredential(void)
+{
+       return false;
+}
+
 void plugin_SetDaemonAPIs(ttspd_funcs_s const * pAPIs)
 {
        gpDaemonAPIs = pAPIs;
index 6f87424..8f3abb6 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <dlog/dlog.h>
 #include <ttsp.h>
+#include <tizen.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -50,14 +51,8 @@ int plugin_Initialize(ttspe_result_cb const cb_func);
 
 int plugin_Finalize(void);
 
-int plugin_SynthesizeText
-(
-  char    const   *pszLanguage,
-  int const   eVoiceType,
-  char              const * pszTextUtf8,
-  int     const   eSpeechSpeed,
-  void                    * pUserParam
-);
+int plugin_SynthesizeText(char const *pszLanguage, int eVoiceType_0,  char const *pszTextUtf8,
+                       int eSpeechSpeed_0, const char* credential, void* pUserParam);
 
 int plugin_StopSynthesis(void);
 
@@ -71,6 +66,8 @@ int plugin_LoadVoice(const char* language, int type);
 
 int plugin_UnloadVoice(const char* language, int type);
 
+bool plugin_NeedAppCredential(void);
+
 void plugin_SetDaemonAPIs (ttspd_funcs_s const * pAPIs);
 
 
index 9a95cb0..dc9c52a 100644 (file)
@@ -56,6 +56,8 @@ int ttsp_load_engine(ttspd_funcs_s* pdfuncs, ttspe_funcs_s* pefuncs)
   pefuncs->load_voice       = plugin_LoadVoice;
   pefuncs->unload_voice             = plugin_UnloadVoice;
 
+  pefuncs->need_app_credential = plugin_NeedAppCredential;
+
   plugin_SetDaemonAPIs(pdfuncs);
 
   SLOG(LOG_DEBUG, TAG_TTSP, "[SMT] ttsp_load_engine() : version(%d), (6.20110527), size(%d)", pefuncs->version, pefuncs->size);