From: sooyeon.kim Date: Thu, 11 Jan 2018 12:11:26 +0000 (+0900) Subject: Add stte errors X-Git-Tag: accepted/tizen/unified/20180305.062850~3^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fstt.git;a=commitdiff_plain;h=9ae2ca6a3ce2ed608e51a3badf3697f59c2622fb Add stte errors Change-Id: I9bc21d72a6df93bc46ccb7857ad45e3ea3e5d916 Signed-off-by: sooyeon.kim (cherry picked from commit 2f2ff8ad8a2ced42572bdeba84875767b0aaf8d2) --- diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 5bd87f7..02be26c 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -14,3 +14,4 @@ INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stt_internal.h" DESTINATION ${INCLUDE INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stt_file.h" DESTINATION ${INCLUDEDIR}) INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stt_setting.h" DESTINATION ${INCLUDEDIR}) INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stte.h" DESTINATION ${INCLUDEDIR}) +INSTALL(FILES "${CMAKE_BINARY_DIR}/include/stte_internal.h" DESTINATION ${INCLUDEDIR}) diff --git a/include/stte_internal.h b/include/stte_internal.h new file mode 100644 index 0000000..e0838e0 --- /dev/null +++ b/include/stte_internal.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +#ifndef __STTE_INTERNAL_H__ +#define __STTE_INTERNAL_H__ + +#include + + +#ifdef __cplusplus +extern "C" { +#endif + + +#define STTE_ERROR_TIMED_OUT TIZEN_ERROR_TIMED_OUT + +#define STTE_ERROR_NO_SPEECH TIZEN_ERROR_STT | 0x07 + + + + + +#ifdef __cplusplus +} +#endif + +#endif /* __STTE_INTERNAL_H__ */ + + diff --git a/packaging/stt.spec b/packaging/stt.spec index d1cf964..03350df 100644 --- a/packaging/stt.spec +++ b/packaging/stt.spec @@ -152,3 +152,4 @@ mkdir -p %{TZ_SYS_RO_SHARE}/voice/test %defattr(-,root,root,-) %{_libdir}/pkgconfig/stt-engine.pc %{_includedir}/stte.h +%{_includedir}/stte_internal.h diff --git a/server/stte.c b/server/stte.c index e60245f..a293006 100755 --- a/server/stte.c +++ b/server/stte.c @@ -111,4 +111,4 @@ int stte_set_private_data_requested_cb(stte_private_data_requested_cb callback) SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] Fail to send speech status"); } return ret; -} \ No newline at end of file +}