1 /* 2 * CDDL HEADER START 3 * 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. 7 * 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. 12 * 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] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _COMMON_H 28 #define _COMMON_H 29 30 #include <sys/types.h> 31 32 /* 33 * Common opaque structure definitions and values used throughout the dhcpagent 34 * implementation. 35 */ 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 41 /* 42 * Things (unfortunately) required because we're in an XPG environment. 43 */ 44 #define B_TRUE _B_TRUE 45 #define B_FALSE _B_FALSE 46 47 struct dhcp_smach_s; 48 typedef struct dhcp_smach_s dhcp_smach_t; 49 struct dhcp_lease_s; 50 typedef struct dhcp_lease_s dhcp_lease_t; 51 struct dhcp_lif_s; 52 typedef struct dhcp_lif_s dhcp_lif_t; 53 struct dhcp_pif_s; 54 typedef struct dhcp_pif_s dhcp_pif_t; 55 typedef int script_callback_t(dhcp_smach_t *, void *); 56 struct dhcp_timer_s; 57 typedef struct dhcp_timer_s dhcp_timer_t; 58 struct dhcp_ipc_s; 59 typedef struct dhcp_ipc_s dhcp_ipc_t; 60 61 typedef int64_t monosec_t; /* see README for details */ 62 63 #ifdef __cplusplus 64 } 65 #endif 66 67 #endif /* _COMMON_H */ 68