xref: /original-bsd/sys/sys/domain.h (revision d272e02a)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)domain.h	7.4 (Berkeley) 06/28/90
8  */
9 
10 /*
11  * Structure per communications domain.
12  */
13 struct	domain {
14 	int	dom_family;		/* AF_xxx */
15 	char	*dom_name;
16 	int	(*dom_init)();		/* initialize domain data structures */
17 	int	(*dom_externalize)();	/* externalize access rights */
18 	int	(*dom_dispose)();	/* dispose of internalized rights */
19 	struct	protosw *dom_protosw, *dom_protoswNPROTOSW;
20 	struct	domain *dom_next;
21 };
22 
23 #ifdef KERNEL
24 struct	domain *domains;
25 #endif
26