8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / cmd-inet / sbin / dhcpagent / common.h
blob1c83b8e03c284480c766412391c7ecdeb1ed386d
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 #ifndef _COMMON_H
28 #define _COMMON_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/types.h>
35 * Common opaque structure definitions and values used throughout the dhcpagent
36 * implementation.
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
44 * Things (unfortunately) required because we're in an XPG environment.
46 #define B_TRUE _B_TRUE
47 #define B_FALSE _B_FALSE
49 struct dhcp_smach_s;
50 typedef struct dhcp_smach_s dhcp_smach_t;
51 struct dhcp_lease_s;
52 typedef struct dhcp_lease_s dhcp_lease_t;
53 struct dhcp_lif_s;
54 typedef struct dhcp_lif_s dhcp_lif_t;
55 struct dhcp_pif_s;
56 typedef struct dhcp_pif_s dhcp_pif_t;
57 typedef int script_callback_t(dhcp_smach_t *, void *);
58 struct dhcp_timer_s;
59 typedef struct dhcp_timer_s dhcp_timer_t;
60 struct dhcp_ipc_s;
61 typedef struct dhcp_ipc_s dhcp_ipc_t;
63 typedef int64_t monosec_t; /* see README for details */
65 #ifdef __cplusplus
67 #endif
69 #endif /* _COMMON_H */