#define AUL_K_APPID "__AUL_APPID__"
/** AUL internal private key */
#define AUL_K_PID "__AUL_PID__"
+/** AUL internal private key - To support data control*/
+#define AUL_K_DATA_CONTROL_TYPE "__AUL_DATA_CONTROL_TYPE__"
#define PRIVACY_POPUP "tizenprv00.privacy-popup"
int aul_subapp_terminate_request_pid(int pid);
int aul_is_subapp(void);
+typedef int (*data_control_provider_handler_fn) (bundle *b, int request_id, void *data);
+int aul_set_data_control_provider_cb(data_control_provider_handler_fn handler);
+int aul_unset_data_control_provider_cb(void);
/** @} */
static int __app_launch_local(bundle *b);
static int __send_result_to_launchpad(int fd, int res);
+static data_control_provider_handler_fn __dc_handler = NULL;
extern int aul_launch_fini();
int aul_is_initialized()
int app_start(bundle *kb)
{
+ const char *str = NULL;
+
_app_start_res_prepare(kb);
__call_aul_handler(AUL_START, kb);
+ // Handle the DataControl callback
+ str = bundle_get_val(kb, AUL_K_DATA_CONTROL_TYPE);
+ if (str != NULL && strcmp(str, "CORE") == 0)
+ {
+ if (__dc_handler != NULL)
+ {
+ __dc_handler(kb, 0, NULL); // bundle, request_id, data
+ }
+ }
return 0;
}
return ret;
}
+SLPAPI int aul_set_data_control_provider_cb(data_control_provider_handler_fn handler)
+{
+ __dc_handler = handler;
+ return 0;
+}
+
+SLPAPI int aul_unset_data_control_provider_cb(void)
+{
+ __dc_handler = NULL;
+ return 0;
+}
+
/* vi: set ts=8 sts=8 sw=8: */