diff options
author | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2021-10-01 16:27:29 +0200 |
---|---|---|
committer | Christian Schoenebeck <qemu_oss@crudebyte.com> | 2021-10-27 14:45:22 +0200 |
commit | 42bdeb04b6a4bf3e54f4d7f87193803268ba8255 (patch) | |
tree | 550db2463fb3787e96d2b8aafa92b4254f4aceab /fsdev | |
parent | c0451f0bc4210d262268ff51c053a9277f20f862 (diff) | |
download | qemu-42bdeb04b6a4bf3e54f4d7f87193803268ba8255.zip qemu-42bdeb04b6a4bf3e54f4d7f87193803268ba8255.tar.gz qemu-42bdeb04b6a4bf3e54f4d7f87193803268ba8255.tar.bz2 |
9pfs: make V9fsString usable via P9Array API
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <ce9f7a0a63585dc27f4545c485109efbec1251da.1633097129.git.qemu_oss@crudebyte.com>
Diffstat (limited to 'fsdev')
-rw-r--r-- | fsdev/9p-marshal.c | 2 | ||||
-rw-r--r-- | fsdev/9p-marshal.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/fsdev/9p-marshal.c b/fsdev/9p-marshal.c index a01bba6..51881fe 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 ceaf2f5..f1abbe1 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; |