/*
- * Copyright (c) 2011 - 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2011 - 2020 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
*/
+#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <fcntl.h>
#include <aul.h>
#include <aul_window.h>
-#include <dlog.h>
#include <cynara-client.h>
+#include <dlog.h>
#include <package-manager.h>
#include "app_manager.h"
char *instance_id = NULL;
int retval = APP_MANAGER_ERROR_NONE;
- if (app_context == NULL)
- return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
-
if (app_context_get_app_id(app_context, &app_id) != APP_MANAGER_ERROR_NONE)
return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, "failed to get the application ID");
int retval;
pid_t pid = 0;
- if (app_context == NULL)
- return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
-
if (app_context_get_pid(app_context, &pid) != APP_MANAGER_ERROR_NONE)
return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, "failed to get the process ID");
int retval = APP_MANAGER_ERROR_NONE;
pid_t pid = 0;
- if (app_context == NULL)
- return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
-
if (app_context_get_pid(app_context, &pid) != APP_MANAGER_ERROR_NONE)
return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, "failed to get the process ID");
{
int ret;
- if (parent_app_id == NULL || child_app_id == NULL)
- return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
-
ret = aul_window_attach(parent_app_id, child_app_id);
if (ret != AUL_R_OK)
return app_manager_error(__aul_error_convert(ret), __FUNCTION__, NULL);
{
int ret;
- if (app_id == NULL)
- return app_manager_error(APP_MANAGER_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL);
-
ret = aul_window_detach(app_id);
if (ret != AUL_R_OK)
return app_manager_error(__aul_error_convert(ret), __FUNCTION__, NULL);