mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-26 21:10:42 +00:00
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>
This commit is contained in:
parent
c0451f0bc4
commit
42bdeb04b6
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user