Add a watch_time_get_daylight_time_status API 62/120462/2
authorSunwook Bae <sunwook45.bae@samsung.com>
Mon, 8 Jun 2015 05:12:42 +0000 (14:12 +0900)
committerSemun Lee <semun.lee@samsung.com>
Thu, 23 Mar 2017 05:23:50 +0000 (14:23 +0900)
This is for backward compatibility of API which was
defined in Tizen 3.0 as an extension api

Change-Id: I94f9bd1eaa0c5ac53d56a883470e21fe0806c9ad
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
Signed-off-by: Semun Lee <semun.lee@samsung.com>
include/watch_app_extension.h [new file with mode: 0755]
packaging/appcore-watch.spec
src/watch_app_main.c

diff --git a/include/watch_app_extension.h b/include/watch_app_extension.h
new file mode 100755 (executable)
index 0000000..3fcf8d6
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2017 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 __TIZEN_APPFW_WATCH_APP_EXTENSION_H__
+#define __TIZEN_APPFW_WATCH_APP_EXTENSION_H__
+
+#include <watch_app.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/**
+ * @brief Gets the daylight time status.
+ * @since_tizen 3.0
+ * @param[in] watch_time The watch_time handle
+ * @param[out] daylight The Daylight time status
+ * @return 0 on success, otherwise a negative error value
+ * @retval #APP_ERROR_INVALID_PARAMETER Invalid Parameter
+ * @retval #APP_ERROR_NONE Successful
+ */
+int watch_time_get_daylight_time_status(watch_time_h watch_time, bool *daylight);
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TIZEN_APPFW_WATCH_APP_EXTENSION_H__ */
index 4f21fb2..d79469a 100644 (file)
@@ -90,6 +90,7 @@ cp LICENSE %{buildroot}/usr/share/license/%{name}
 
 %files -n capi-appfw-watch-application-devel
 %{_includedir}/appcore-watch/watch_app.h
+%{_includedir}/appcore-watch/watch_app_extension.h
 %{_includedir}/appcore-watch/watch_app_efl.h
 %{_libdir}/pkgconfig/capi-appfw-watch-application.pc
 
index f619c00..fd561b5 100755 (executable)
@@ -921,6 +921,11 @@ EXPORT_API int watch_time_get_dst_status(watch_time_h watch_time, bool *status)
        return APP_ERROR_NONE;
 }
 
+EXPORT_API int watch_time_get_daylight_time_status(watch_time_h watch_time, bool *daylight)
+{
+       return watch_time_get_dst_status(watch_time, daylight);
+}
+
 EXPORT_API int watch_app_get_elm_win(Evas_Object **win)
 {
        Evas_Object *ret_win;