]> git.proxmox.com Git - mirror_qemu.git/commitdiff
9pfs: make V9fsString usable via P9Array API
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Fri, 1 Oct 2021 14:27:29 +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: <ce9f7a0a63585dc27f4545c485109efbec1251da.1633097129.git.qemu_oss@crudebyte.com>

fsdev/9p-marshal.c
fsdev/9p-marshal.h

index a01bba6908a82076a77dd1401c0434ba8eb79de1..51881fe2201075f01acc55730cdb0cf4edfc46f6 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "9p-marshal.h"
 
+P9ARRAY_DEFINE_TYPE(V9fsString, v9fs_string_free);
+
 void v9fs_string_free(V9fsString *str)
 {
     g_free(str->data);
index ceaf2f521ec453a141db3138e0ae339dfb16dac3..f1abbe151c33a7284d556000709e9bca117b6d9c 100644 (file)
@@ -1,10 +1,13 @@
 #ifndef QEMU_9P_MARSHAL_H
 #define QEMU_9P_MARSHAL_H
 
+#include "p9array.h"
+
 typedef struct V9fsString {
     uint16_t size;
     char *data;
 } V9fsString;
+P9ARRAY_DECLARE_TYPE(V9fsString);
 
 typedef struct V9fsQID {
     uint8_t type;