2023-02-23 15:08:08 +08:00
|
|
|
// SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.
|
2023-02-14 18:13:19 +08:00
|
|
|
//
|
2023-02-23 15:08:08 +08:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
2022-03-30 17:56:27 +08:00
|
|
|
|
|
|
|
#ifndef LINGLONG_BOX_SRC_UTIL_PLATFORM_H_
|
|
|
|
#define LINGLONG_BOX_SRC_UTIL_PLATFORM_H_
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
#define tl std
|
|
|
|
|
|
|
|
namespace linglong {
|
|
|
|
|
|
|
|
namespace util {
|
|
|
|
|
|
|
|
int PlatformClone(int (*callback)(void *), int flags, void *arg, ...);
|
|
|
|
|
|
|
|
int Exec(const util::str_vec &args, tl::optional<std::vector<std::string>> env_list);
|
|
|
|
|
|
|
|
} // namespace util
|
|
|
|
|
|
|
|
} // namespace linglong
|
|
|
|
|
|
|
|
#endif /* LINGLONG_BOX_SRC_UTIL_PLATFORM_H_ */
|