Skip to content

Commit

Permalink
9pfs: make V9fsString usable via P9Array API
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <ce9f7a0a63585dc27f4545c485109efbec1251da.1633097129.git.qemu_oss@crudebyte.com>
  • Loading branch information
cschoenebeck committed Oct 27, 2021
1 parent c0451f0 commit 42bdeb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fsdev/9p-marshal.c
Expand Up @@ -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);
Expand Down
3 changes: 3 additions & 0 deletions 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;
Expand Down

0 comments on commit 42bdeb0

Please sign in to comment.