From b1b07aea8841d78e935e7de13d693a267709e711 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Mon, 7 Oct 2024 16:47:42 -0600 Subject: wip --- cmd/srv9p/static.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 cmd/srv9p/static.h (limited to 'cmd/srv9p/static.h') diff --git a/cmd/srv9p/static.h b/cmd/srv9p/static.h new file mode 100644 index 0000000..90bad4b --- /dev/null +++ b/cmd/srv9p/static.h @@ -0,0 +1,27 @@ +#ifndef _STATIC_H_ +#define _STATIC_H_ + +#include + +struct static_dir_data { + char *u_name; + uint32_t u_num; + char *g_name; + uint32_t g_num; + char *m_name; + uint32_t m_num; + + uint64_t pathnum; + char *name; + lib9p_dm_t perm; + uint32_t atime, mtime; + + /* NULL-terminated */ + struct lib9p_srv_file *members[]; +}; + +extern struct lib9p_srv_file_vtable static_dir_vtable; + +//extern struct lib9p_srv_io_dir_vtable static_dir_io_vtable; + +#endif /* _STATIC_H_ */ -- cgit v1.2.3-2-g168b