1*3147Sxc151355 /*
2*3147Sxc151355  * CDDL HEADER START
3*3147Sxc151355  *
4*3147Sxc151355  * The contents of this file are subject to the terms of the
5*3147Sxc151355  * Common Development and Distribution License (the "License").
6*3147Sxc151355  * You may not use this file except in compliance with the License.
7*3147Sxc151355  *
8*3147Sxc151355  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*3147Sxc151355  * or http://www.opensolaris.org/os/licensing.
10*3147Sxc151355  * See the License for the specific language governing permissions
11*3147Sxc151355  * and limitations under the License.
12*3147Sxc151355  *
13*3147Sxc151355  * When distributing Covered Code, include this CDDL HEADER in each
14*3147Sxc151355  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*3147Sxc151355  * If applicable, add the following below this CDDL HEADER, with the
16*3147Sxc151355  * fields enclosed by brackets "[]" replaced with your own identifying
17*3147Sxc151355  * information: Portions Copyright [yyyy] [name of copyright owner]
18*3147Sxc151355  *
19*3147Sxc151355  * CDDL HEADER END
20*3147Sxc151355  */
21*3147Sxc151355 /*
22*3147Sxc151355  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*3147Sxc151355  * Use is subject to license terms.
24*3147Sxc151355  */
25*3147Sxc151355 
26*3147Sxc151355 #ifndef _LIBDLADM_IMPL_H
27*3147Sxc151355 #define	_LIBDLADM_IMPL_H
28*3147Sxc151355 
29*3147Sxc151355 #pragma ident	"%Z%%M%	%I%	%E% SMI"
30*3147Sxc151355 
31*3147Sxc151355 #include <libdladm.h>
32*3147Sxc151355 #include <stdio.h>
33*3147Sxc151355 
34*3147Sxc151355 #ifdef	__cplusplus
35*3147Sxc151355 extern "C" {
36*3147Sxc151355 #endif
37*3147Sxc151355 
38*3147Sxc151355 #define	MAXLINELEN		1024
39*3147Sxc151355 #define	BUFLEN(lim, ptr)	(((lim) > (ptr)) ? ((lim) - (ptr)) : 0)
40*3147Sxc151355 
41*3147Sxc151355 extern int		i_dladm_ioctl(int, int, void *, int);
42*3147Sxc151355 extern dladm_status_t	dladm_errno2status(int);
43*3147Sxc151355 extern dladm_status_t	i_dladm_rw_db(const char *, mode_t,
44*3147Sxc151355 			    dladm_status_t (*)(void *, FILE *, FILE *),
45*3147Sxc151355 			    void *, boolean_t);
46*3147Sxc151355 
47*3147Sxc151355 #ifdef	__cplusplus
48*3147Sxc151355 }
49*3147Sxc151355 #endif
50*3147Sxc151355 
51*3147Sxc151355 #endif	/* _LIBDLADM_IMPL_H */
52