Change a parameter type of complication API 53/279353/2
authorHwankyu Jhun <h.jhun@samsung.com>
Sun, 7 Aug 2022 23:04:54 +0000 (08:04 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 8 Aug 2022 03:20:16 +0000 (12:20 +0900)
The const keyword is added for value of aul_complication_launch_with_extra_data().
The parameter is used to add the key-value to the bundle object.
The type of the value is changed to 'const char*'.

Change-Id: I088707783f6c40a1c30d599604c0464651c148d5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/aul_complication.h
src/aul_complication.c

index dd8c2a1..bc99737 100644 (file)
@@ -24,11 +24,15 @@ extern "C" {
 #define AUL_K_COMPLICATION_MODE                "__AUL_COMPLICATION_MODE__"
 
 #define UPDATE_REQUEST         "__UPDATE_REQUEST__"
+
 #define LAUNCH_REQUEST         "__LAUNCH_REQUEST__"
 
-int aul_complication_update_request(const char *appid, const char *provider_appid, uid_t uid);
+int aul_complication_update_request(const char *appid,
+               const char *provider_appid, uid_t uid);
+
 int aul_complication_launch_with_extra_data(const char *appid,
-               const char *provider_appid, uid_t uid, const char *key, char *value);
+               const char *provider_appid, uid_t uid,
+               const char *key, const char *value);
 
 #ifdef __cplusplus
 }
index 5e65854..8d799b6 100644 (file)
@@ -88,7 +88,7 @@ API int aul_complication_update_request(const char *appid, const char *provider_
 }
 
 API int aul_complication_launch_with_extra_data(const char *appid,
-               const char *provider_appid, uid_t uid, const char *key, char *value)
+               const char *provider_appid, uid_t uid, const char *key, const char *value)
 {
        bundle *b;
        int r;