Fix parameter of mmi_provider_event_voice 93/283793/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Tue, 11 Oct 2022 08:59:32 +0000 (17:59 +0900)
committerTizen AI <ai.tzn.sec@samsung.com>
Thu, 3 Nov 2022 05:44:38 +0000 (14:44 +0900)
- Issue:
The event structure does not have member for storing language of result
infomration.

- Solution:
This patch fixes the member of the event structure for voice modality.
Through this patch, voice modality provider can send the language
information using this structure.

Change-Id: I82f0e2d9eae4f990e15451ec6e0f698062f606be
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
src/mmimgr/mmi-common.h
src/mmimgr/mmi-provider.c

index cbd06da..9c168f5 100644 (file)
@@ -264,10 +264,8 @@ typedef struct
        int timestamp;
        int duration;
        double confidence;
-       char *cmd;
-       char **args;
-       int nargs;//num of args
        int result_type;//partial or final result
+       char *language;
        char *source;//event source information
 } mmi_provider_event_voice;
 
index 01c165c..f88d072 100644 (file)
@@ -67,7 +67,7 @@ _voice_provider_event_cb(void *data EINA_UNUSED, int type, void *event)
 
        LOGI("[MMI_PROVIDER_EVENT_VOICE] type:%d, timestamp:%d, duration:%d, confidence=%.2f\n",
                ev->type, ev->timestamp, ev->duration, ev->confidence);
-       LOGI("... cmd:%s, nargs:%d, source:%s\n", ev->cmd, ev->nargs, ev->source);
+       LOGI("... result type:%d, language:%s, source:%s\n", ev->result_type, ev->language, ev->source);
 
        return ECORE_CALLBACK_PASS_ON;
 }