Update scripts 41/181941/1
authormk5004.lee <mk5004.lee@samsung.com>
Tue, 19 Jun 2018 06:24:49 +0000 (15:24 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Tue, 19 Jun 2018 06:24:49 +0000 (15:24 +0900)
Change-Id: I3cf991149f09643fae2904eabb87bb5653a8ebe3
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
watchface-complication-provider/include/watchface-complication-provider.h
watchface-complication/include/watchface-editable.h

index 80e4c81..1253be7 100644 (file)
@@ -302,7 +302,7 @@ int watchface_complication_provider_setup_get_context(app_control_h handle,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
@@ -333,7 +333,7 @@ int watchface_complication_provider_data_set_type(bundle *shared_data,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
@@ -363,7 +363,7 @@ int watchface_complication_provider_data_set_short_text(bundle *shared_data,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
@@ -394,7 +394,7 @@ int watchface_complication_provider_data_set_long_text(bundle *shared_data,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
@@ -424,7 +424,7 @@ int watchface_complication_provider_data_set_title(bundle *shared_data,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
@@ -457,7 +457,7 @@ int watchface_complication_provider_data_set_timestamp(bundle *shared_data,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
@@ -489,7 +489,7 @@ int watchface_complication_provider_data_set_image_path(bundle *shared_data,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
@@ -520,7 +520,7 @@ int watchface_complication_provider_data_set_ranged_value(bundle *shared_data,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
@@ -550,7 +550,7 @@ int watchface_complication_provider_data_set_icon_path(bundle *shared_data,
  * @par Sample code:
  * @code
 #include <watchface-complication-provider.h>
-int _watchface_complication_provider_update_requested_cb(const char *provider_id,
+void _watchface_complication_provider_update_requested_cb(const char *provider_id,
                const char *req_appid, watchface_complication_type_e type,
                const bundle *context, bundle *shared_data, void *user_data)
 {
index 66b0982..fe8da04 100644 (file)
@@ -152,7 +152,7 @@ int watchface_editable_candidates_list_create(
  * @par Sample code:
  * @code
 #include <watchface-complication.h>
-_watchface_editable_edit_ready_cb(editable_container_h handle,
+void _watchface_editable_edit_ready_cb(editable_container_h handle,
                const char *editor_appid, void *user_data)
 {
        watchface_editable_geo_h geo;
@@ -204,7 +204,7 @@ int watchface_editable_candidates_list_add(
  * @par Sample code:
  * @code
 #include <watchface-complication.h>
-_watchface_editable_edit_ready_cb(editable_container_h handle,
+void _watchface_editable_edit_ready_cb(editable_container_h handle,
                const char *editor_appid, void *user_data)
 {
        watchface_editable_geo_h geo;
@@ -264,7 +264,7 @@ int watchface_editable_candidates_list_destroy(
  * @par Sample code:
  * @code
 #include <watchface-editable.h>
-_watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
+void _watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
                const char *editor_appid, void *user_data)
 {
        watchface_editable_geo_h geo;
@@ -318,19 +318,16 @@ int watchface_editable_add_design_element(watchface_editable_container_h handle,
  * @par Sample code:
  * @code
 #include <watchface-editable.h>
-_watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
+void _watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
                        const char *editor_appid, void *user_data)
 {
        int comp_id = 1;
-       complication_h comp;
        watchface_editable_geo_h geo;
 
-       // create complication
-       watchface_complication_create(,,,&comp);
-
-       // set geometry
        watchface_editable_geometry_create(&geo);
        watchface_editable_geometry_set(geo, 50, 50, 100, 100);
+
+       // add the created complication
        watchface_editable_add_complication(handle, comp_id, comp, geo);
        watchface_editable_geometry_destroy(geo);
 
@@ -358,12 +355,11 @@ int watchface_editable_add_complication(watchface_editable_container_h handle,
  * @par Sample code:
  * @code
 #include <watchface-editable.h>
-_watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
+void _watchface_editable_edit_ready_cb(watchface_editable_container_h handle,
                        const char *editor_appid, void *user_data)
 {
        int comp_id = 1;
        int design_element_id = 2;
-       complication_h comp;
        bundle *design_element;
        complication_candidates_list_h candidates_list = NULL;
        watchface_editable_geo_h geo;