diff options
author | des <des@FreeBSD.org> | 2001-11-03 03:07:09 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-11-03 03:07:09 +0000 |
commit | 7885415b9c992e06f3300a21f8963343d1f42bfe (patch) | |
tree | 40534189945b2b458fc90201540d0949ab167ccc /sys/fs/pseudofs/pseudofs.h | |
parent | 29155a87f53871d0fe39dd5375efe674b1f78c2c (diff) | |
download | FreeBSD-src-7885415b9c992e06f3300a21f8963343d1f42bfe.zip FreeBSD-src-7885415b9c992e06f3300a21f8963343d1f42bfe.tar.gz |
Reduce the number of #include dependencies by declaring some of the structs
used in pseudofs.h as opaque structs.
Diffstat (limited to 'sys/fs/pseudofs/pseudofs.h')
-rw-r--r-- | sys/fs/pseudofs/pseudofs.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs.h b/sys/fs/pseudofs/pseudofs.h index fdcde59..b21d9b6 100644 --- a/sys/fs/pseudofs/pseudofs.h +++ b/sys/fs/pseudofs/pseudofs.h @@ -32,9 +32,23 @@ #define _PSEUDOFS_H_INCLUDED /* + * Opaque structures + */ +struct mount; +struct nameidata; +struct proc; +struct sbuf; +struct statfs; +struct thread; +struct uio; +struct vfsconf; +struct vnode; + +/* * Limits and constants */ #define PFS_NAMELEN 24 +#define PFS_FSNAMELEN 16 /* equal to MFSNAMELEN */ #define PFS_DELEN (8 + PFS_NAMELEN) typedef enum { @@ -122,7 +136,7 @@ typedef int (*pfs_ioctl_t)(PFS_IOCTL_ARGS); * pfs_info: describes a pseudofs instance */ struct pfs_info { - char pi_name[MFSNAMELEN]; + char pi_name[PFS_FSNAMELEN]; pfs_init_t pi_init; pfs_init_t pi_uninit; /* members below this line aren't initialized */ |