From: Christian Schoenebeck Date: Fri, 1 Oct 2021 14:27:29 +0000 (+0200) Subject: 9pfs: make V9fsString usable via P9Array API X-Git-Tag: v6.2.0-rc0~37^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42bdeb04b6a4bf3e54f4d7f87193803268ba8255;p=thirdparty%2Fqemu.git 9pfs: make V9fsString usable via P9Array API Signed-off-by: Christian Schoenebeck Message-Id: --- diff --git a/fsdev/9p-marshal.c b/fsdev/9p-marshal.c index a01bba6908a..51881fe2201 100644 --- a/fsdev/9p-marshal.c +++ b/fsdev/9p-marshal.c @@ -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); diff --git a/fsdev/9p-marshal.h b/fsdev/9p-marshal.h index ceaf2f521ec..f1abbe151c3 100644 --- a/fsdev/9p-marshal.h +++ b/fsdev/9p-marshal.h @@ -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;