+ g_variant_get(var, "(i)", &mmc_ret);
+
+ _I("Mount State : %d", mmc_ret);
+
+exit:
+ if (var)
+ g_variant_unref(var);
+ (mmc_data->mmc_cb)(mmc_ret, mmc_data->user_data);
+}
+//LCOV_EXCL_STOP
+
+API int storage_request_mount_mmc(struct mmc_contents *mmc_data)
+{
+ void (*mount_cb)(GVariant *, void *, GError *) = NULL;
+ void *data = NULL;
+ char *path;
+ int ret_val;
+ int id;
+
+ if (mmc_data && mmc_data->mmc_cb) {
+ _I("Mount callback exists");
+ mount_cb = mount_mmc_cb;
+ data = mmc_data;
+ }
+
+ ret_val = storage_get_primary_sdcard(&id, &path);
+ if (ret_val != STORAGE_ERROR_NONE)
+ return ret_val;
+//LCOV_EXCL_START System Error
+ if (path)
+ free(path);
+//LCOV_EXCL_STOP
+
+ ret_val = gdbus_call_async_with_reply(STORAGE_EXT_BUS_NAME,
+ STORAGE_EXT_PATH_MANAGER,
+ STORAGE_EXT_IFACE_MANAGER,
+ "Mount",
+ g_variant_new("(is)", id, ""),
+ mount_cb,
+ -1,
+ data);
+
+ _I("Mount Request %s", ret_val == 0 ? "Success" : "Failed");
+
+ if (ret_val == -ENOMEM)
+ return STORAGE_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE System Error
+ if (ret_val < 0)
+ return STORAGE_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
+
+ return STORAGE_ERROR_NONE;
+}
+
+//LCOV_EXCL_START Not called callback
+static void unmount_mmc_cb(GVariant *var, void *user_data, GError *err)
+{
+ struct mmc_contents *mmc_data = (struct mmc_contents*)user_data;
+ int mmc_ret;
+
+ _D("unmount_mmc_cb called");
+
+ if (!var) {
+ _E("no message [%s]", err->message);
+ mmc_ret = -EBADMSG;
+ goto exit;