2 * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include "include/aul_proc_group.h"
22 #include <sys/types.h>
25 #include "app_request.h"
28 #include "include/aul_error.h"
29 #include "include/aul_sock.h"
32 using namespace aul::internal;
34 extern "C" API int aul_proc_group_add(pid_t pid) {
36 _E("Invalid parameter");
40 int ret = AppRequest(PROC_GROUP_ADD, getuid())
44 _E("Failed to send the request. error(%d)", ret);
45 return aul_error_convert(ret);
51 extern "C" API int aul_proc_group_remove(pid_t pid) {
53 _E("Invalid parameter");
57 int ret = AppRequest(PROC_GROUP_REMOVE, getuid())
61 _E("Failed to send the request. error(%d)", ret);
62 return aul_error_convert(ret);