| * Copyright IBM, Corp. 2011 |
| * Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> |
| * This work is licensed under the terms of the GNU GPL, version 2. See |
| * the COPYING file in the top-level directory. |
| typedef struct V9fsSynthNode V9fsSynthNode; |
| typedef ssize_t (*v9fs_synth_read)(void *buf, int len, off_t offset, |
| typedef ssize_t (*v9fs_synth_write)(void *buf, int len, off_t offset, |
| typedef struct V9fsSynthNodeAttr { |
| QLIST_HEAD(, V9fsSynthNode) child; |
| QLIST_ENTRY(V9fsSynthNode) sibling; |
| V9fsSynthNodeAttr actual_attr; |
| typedef struct V9fsSynthOpenState { |
| extern int qemu_v9fs_synth_mkdir(V9fsSynthNode *parent, int mode, |
| const char *name, V9fsSynthNode **result); |
| extern int qemu_v9fs_synth_add_file(V9fsSynthNode *parent, int mode, |
| const char *name, v9fs_synth_read read, |
| v9fs_synth_write write, void *arg); |