From 57d2fe1b26429490b61d09dc8402024dc51b4386 Mon Sep 17 00:00:00 2001 From: yuncang123 <1050706328@qq.com> Date: Tue, 27 Aug 2024 14:39:33 +0800 Subject: [PATCH 19/20] fix invalid usage of arrtibute'visibility' --- 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.33.0