extern "C" {
#endif
+#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_launch_with_extra_data(const char *appid,
const char *provider_appid, uid_t uid, const char *key, char *value);
return AUL_R_ERROR;
}
+ r = bundle_add(b, AUL_K_COMPLICATION_MODE, UPDATE_REQUEST);
+ if (r != BUNDLE_ERROR_NONE) {
+ _E("Failed to add appid(%s)", appid);
+ bundle_free(b);
+ return AUL_R_ERROR;
+ }
+
snprintf(buf, sizeof(buf), "%d", uid);
r = bundle_add(b, AUL_K_TARGET_UID, buf);
if (r != BUNDLE_ERROR_NONE) {
return AUL_R_ERROR;
}
+ r = bundle_add(b, AUL_K_COMPLICATION_MODE, LAUNCH_REQUEST);
+ if (r != BUNDLE_ERROR_NONE) {
+ _E("Failed to add appid(%s)", appid);
+ bundle_free(b);
+ return AUL_R_ERROR;
+ }
+
snprintf(buf, sizeof(buf), "%d", uid);
r = bundle_add(b, AUL_K_TARGET_UID, buf);
if (r != BUNDLE_ERROR_NONE) {