access_output_tts: return -1 for init error 45/247645/2 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211028.115637 accepted/tizen/7.0/unified/20221110.061752 accepted/tizen/7.0/unified/hotfix/20221116.110040 accepted/tizen/8.0/unified/20231005.094117 accepted/tizen/unified/20201116.220342 submit/tizen/20201115.212153 submit/tizen_6.5/20211028.163101 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorShinwoo Kim <cinoo.kim@samsung.com>
Fri, 13 Nov 2020 04:44:07 +0000 (13:44 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 13 Nov 2020 05:13:02 +0000 (14:13 +0900)
commit7680c81b0e905f85da28be970fa8b2821358ce7a
treed11e2644e2fca8b7e45de322bbf73340836d94d6
parent610cc441319cea3192acbab4cb2eac8bb140e782
access_output_tts: return -1 for init error

The return value of elm_modapi_init is used by _access_init in elementary.
If the return value is negative, it means the init is not done correctly.
So elm_modapi_init should have to return negative value if there is a porblem.

If elm_modapi_init uses the return value of TTS api as a return value,
and the TTS api return value is not negative even though there is an error,
then elementary regards that there is not a problem, and will not try to
init access_output_tts module again.

Change-Id: I941d9ad24f36e27f91d07884991725aa45b2a790
access_output_tts/src/mod.c