/** AUL internal private key */
#define AUL_K_LOADER_EXTRA "__AUL_LOADER_EXTRA__"
/** AUL internal private key */
+#define AUL_K_LOADER_NAME "__AUL_LOADER_NAME__"
+/** AUL internal private key */
#define AUL_K_WAYLAND_DISPLAY "__AUL_WAYLAND_DISPLAY__"
/** AUL internal private key */
#define AUL_K_WAYLAND_WORKING_DIR "__AUL_WAYLAND_WORKING_DIR__"
/**
* @par Description:
+ * This function sets loader name into bundle. Launchpad will assign a static slot to launch an app.
+ *
+ * @param[in] b Bundle object
+ * @param[in] loader_name Loader name to assign
+ *
+ * @return 0 if success, negative value(<0) if fail
+ * @remarks This API is only for Appfw internally.
+ */
+int aul_svc_set_loader_name(bundle *b, const char *loader_name);
+
+/**
+ * @par Description:
* This API sets the background launch mode.
* If the background launch mode is enabled, a window of the callee process doesn't appear on the screen.
*
return __set_bundle(b, AUL_K_LOADER_ID, tmp);
}
+API int aul_svc_set_loader_name(bundle *b, const char *loader_name)
+{
+ if (b == NULL) {
+ _E("bundle for aul_svc_set_loader_name is NULL");
+ return AUL_SVC_RET_EINVAL;
+ }
+
+ if (!loader_name) {
+ _E("invalid loader name");
+ return AUL_SVC_RET_EINVAL;
+ }
+
+ return __set_bundle(b, AUL_K_LOADER_NAME, loader_name);
+}
+
API int aul_svc_set_background_launch(bundle *b, int enabled)
{
if (b == NULL)