7 Star 1 Fork 39

src-openEuler/lcr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0019-fix-invalid-usage-of-arrtibute-visibility.patch 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
武积超 提交于 2024-10-17 17:34 . unify nri variable format
From 42b0b52d0cb8b857a3d3dae7271c06b435cbebb5 Mon Sep 17 00:00:00 2001
From: yuncang123 <[email protected]>
Date: Sat, 24 Aug 2024 02:13:48 +0800
Subject: [PATCH] delete __EXPORT__ in front of struct
---
src/runtime/lcrcontainer.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/runtime/lcrcontainer.h b/src/runtime/lcrcontainer.h
index d4cef39..4eedec9 100644
--- a/src/runtime/lcrcontainer.h
+++ b/src/runtime/lcrcontainer.h
@@ -40,13 +40,13 @@ extern "C" {
/* define console log config */
-__EXPORT__ struct lcr_console_config {
+struct lcr_console_config {
char *log_path;
unsigned int log_rotate;
char *log_file_size;
};
-__EXPORT__ struct blkio_stats {
+struct blkio_stats {
uint64_t read;
uint64_t write;
uint64_t total;
@@ -55,7 +55,7 @@ __EXPORT__ struct blkio_stats {
/*
* Store lcr container state
*/
-__EXPORT__ struct lcr_container_state {
+struct lcr_container_state {
/* Name of container */
char *name;
/* State of container */
@@ -92,14 +92,14 @@ typedef enum {
lcr_msg_exit_code,
} lcr_msg_type_t;
-__EXPORT__ struct lcr_msg {
+struct lcr_msg {
lcr_msg_type_t type;
char name[NAME_MAX + 1];
int value;
int pid;
};
-__EXPORT__ struct lcr_cgroup_resources {
+struct lcr_cgroup_resources {
uint64_t blkio_weight;
uint64_t cpu_shares;
uint64_t cpu_period;
@@ -150,7 +150,7 @@ __EXPORT__ bool lcr_create(const char *name, const char *lcrpath, void *oci_conf
* gid : user in which group
* additional_gids : Add additional groups to join
*/
-__EXPORT__ struct lcr_start_request {
+struct lcr_start_request {
const char *name;
const char *lcrpath;
@@ -237,7 +237,7 @@ __EXPORT__ void lcr_free_console_config(struct lcr_console_config *config);
__EXPORT__ int lcr_log_init(const char *name, const char *file, const char *priority,
const char *prefix, int quiet, const char *lcrpath);
-__EXPORT__ struct lcr_exec_request {
+struct lcr_exec_request {
const char *name;
const char *lcrpath;
--
2.43.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/lcr.git
[email protected]:src-openeuler/lcr.git
src-openeuler
lcr
lcr
master

搜索帮助