diff options
Diffstat (limited to 'cmd/srv9p/static9p.h')
-rw-r--r-- | cmd/srv9p/static9p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/srv9p/static9p.h b/cmd/srv9p/static9p.h index 92f5909..98b85a2 100644 --- a/cmd/srv9p/static9p.h +++ b/cmd/srv9p/static9p.h @@ -9,8 +9,8 @@ #include <lib9p/srv.h> -struct static_metadata { - struct lib9p_srv_file header; +typedef struct { + implements_lib9p_srv_file; char *u_name; uint32_t u_num; @@ -23,10 +23,10 @@ struct static_metadata { char *name; lib9p_dm_t perm; uint32_t atime, mtime; -}; +} _static_common; struct static_dir { - struct static_metadata metadata; + _static_common; /* NULL-terminated */ struct lib9p_srv_file *members[]; @@ -34,7 +34,7 @@ struct static_dir { struct static_file { - struct static_metadata metadata; + _static_common; char *data_start; /* must not be NULL */ char *data_end; /* may be NULL, in which case data_size is used */ |