mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-23 07:00:17 +00:00
121f8b2316
Signed-off-by: zhongning5 <zhongning5@huawei.com>
55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef APPSPAWN_CLIENT_MOUNT_PERMISSION_H
|
|
#define APPSPAWN_CLIENT_MOUNT_PERMISSION_H
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "list.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef APPSPAWN_CLIENT
|
|
typedef struct TagSandboxQueue {
|
|
struct ListNode front;
|
|
uint32_t type;
|
|
} SandboxQueue;
|
|
|
|
typedef struct {
|
|
struct ListNode node;
|
|
} SandboxMountNode;
|
|
|
|
typedef struct TagPermissionNode {
|
|
SandboxMountNode sandboxNode;
|
|
uint32_t permissionIndex;
|
|
char name[0];
|
|
} SandboxPermissionNode;
|
|
#endif
|
|
|
|
#ifdef APPSPAWN_CLIENT
|
|
#define PERMISSION_NAME(node) (node) == NULL ? NULL : (node)->name
|
|
#else
|
|
#define PERMISSION_NAME(node) (node) == NULL ? NULL : (node)->section.name
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif // APPSPAWN_CLIENT_MOUNT_PERMISSION_H
|