Skip to content
Snippets Groups Projects
Commit cc82fde9 authored by Christian Schoenebeck's avatar Christian Schoenebeck
Browse files

9pfs: make V9fsPath usable via P9Array API


Signed-off-by: default avatarChristian Schoenebeck <qemu_oss@crudebyte.com>
Message-Id: <79a0ddf8375f6c95f0565ef155a1bf1e9387664f.1633097129.git.qemu_oss@crudebyte.com>
parent 42bdeb04
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment