]> git.proxmox.com Git - mirror_qemu.git/commitdiff
9pfs: make V9fsPath usable via P9Array API
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Fri, 1 Oct 2021 14:27:46 +0000 (16:27 +0200)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Wed, 27 Oct 2021 12:45:22 +0000 (14:45 +0200)
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <79a0ddf8375f6c95f0565ef155a1bf1e9387664f.1633097129.git.qemu_oss@crudebyte.com>

fsdev/file-op-9p.h
hw/9pfs/9p.c

index 42f677cf38c2d2002868a476e9870eafd79df839..8fd89f04474bde882c7dfa6d41b07136a59cb2d6 100644 (file)
@@ -18,6 +18,7 @@
 #include <utime.h>
 #include <sys/vfs.h>
 #include "qemu-fsdev-throttle.h"
+#include "p9array.h"
 
 #define SM_LOCAL_MODE_BITS    0600
 #define SM_LOCAL_DIR_MODE_BITS    0700
@@ -105,6 +106,7 @@ struct V9fsPath {
     uint16_t size;
     char *data;
 };
+P9ARRAY_DECLARE_TYPE(V9fsPath);
 
 typedef union V9fsFidOpenState V9fsFidOpenState;
 
index e874899ef581cde040b456d983cfce7a716c85dc..15bb16f466b05ad895a697349344198d7e2960f8 100644 (file)
@@ -50,6 +50,8 @@ enum {
     Oappend = 0x80,
 };
 
+P9ARRAY_DEFINE_TYPE(V9fsPath, v9fs_path_free);
+
 static ssize_t pdu_marshal(V9fsPDU *pdu, size_t offset, const char *fmt, ...)
 {
     ssize_t ret;