summaryrefslogtreecommitdiff
path: root/cmd/srv9p/static.h
blob: 90bad4bf3c101775a3dd89f8eda477d945ccf3fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _STATIC_H_
#define _STATIC_H_

#include <lib9p/srv.h>

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_ */