]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lxc_fuse: Hide struct virLXCFuse
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 13 Apr 2020 13:59:55 +0000 (15:59 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Mar 2022 13:01:48 +0000 (14:01 +0100)
This structure is not used outside of lxc_fuse.c. There is no need
to define it in the header file.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/lxc/lxc_fuse.c
src/lxc/lxc_fuse.h

index e75a533c701099be0953dee68dd36879f7f9c225..7b9562995536c537b1ea3ea71566193bdd1590f2 100644 (file)
 
 #if WITH_FUSE
 
+struct virLXCFuse {
+    virDomainDef *def;
+    virThread thread;
+    char *mountpoint;
+    struct fuse *fuse;
+    struct fuse_chan *ch;
+    virMutex lock;
+};
+
 static const char *fuse_meminfo_path = "/meminfo";
 
 static int lxcProcGetattr(const char *path, struct stat *stbuf)
index 54a0a74155f3f4162d9aa8fd640e524332f7b843..34a59667d4fad29ceb6b3cc660bf94297bddf067 100644 (file)
@@ -41,14 +41,6 @@ struct virLXCMeminfo {
     unsigned long long swapusage;
 };
 
-struct virLXCFuse {
-    virDomainDef *def;
-    virThread thread;
-    char *mountpoint;
-    struct fuse *fuse;
-    struct fuse_chan *ch;
-    virMutex lock;
-};
 typedef struct virLXCFuse virLXCFuse;
 
 int lxcSetupFuse(struct virLXCFuse **f, virDomainDef *def);