Add stte errors 37/167937/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Thu, 11 Jan 2018 12:11:26 +0000 (21:11 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Tue, 23 Jan 2018 05:20:10 +0000 (05:20 +0000)
Change-Id: I9bc21d72a6df93bc46ccb7857ad45e3ea3e5d916
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 2f2ff8ad8a2ced42572bdeba84875767b0aaf8d2)

include/CMakeLists.txt
include/stte_internal.h [new file with mode: 0644]
packaging/stt.spec
server/stte.c

index 5bd87f7..02be26c 100644 (file)
@@ -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 (file)
index 0000000..e0838e0
--- /dev/null
@@ -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 <tizen.h>
+
+
+#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__ */
+
+
index d1cf964..03350df 100644 (file)
@@ -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
index e60245f..a293006 100755 (executable)
@@ -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
+}