1*0e42dee6Sartem /*
2*0e42dee6Sartem  * CDDL HEADER START
3*0e42dee6Sartem  *
4*0e42dee6Sartem  * The contents of this file are subject to the terms of the
5*0e42dee6Sartem  * Common Development and Distribution License (the "License").
6*0e42dee6Sartem  * You may not use this file except in compliance with the License.
7*0e42dee6Sartem  *
8*0e42dee6Sartem  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*0e42dee6Sartem  * or http://www.opensolaris.org/os/licensing.
10*0e42dee6Sartem  * See the License for the specific language governing permissions
11*0e42dee6Sartem  * and limitations under the License.
12*0e42dee6Sartem  *
13*0e42dee6Sartem  * When distributing Covered Code, include this CDDL HEADER in each
14*0e42dee6Sartem  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*0e42dee6Sartem  * If applicable, add the following below this CDDL HEADER, with the
16*0e42dee6Sartem  * fields enclosed by brackets "[]" replaced with your own identifying
17*0e42dee6Sartem  * information: Portions Copyright [yyyy] [name of copyright owner]
18*0e42dee6Sartem  *
19*0e42dee6Sartem  * CDDL HEADER END
20*0e42dee6Sartem  */
21*0e42dee6Sartem /*
22*0e42dee6Sartem  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*0e42dee6Sartem  * Use is subject to license terms.
24*0e42dee6Sartem  */
25*0e42dee6Sartem 
26*0e42dee6Sartem #ifndef	_LIBFSTYP_MODULE_H
27*0e42dee6Sartem #define	_LIBFSTYP_MODULE_H
28*0e42dee6Sartem 
29*0e42dee6Sartem /*
30*0e42dee6Sartem  * libfstyp: module interface
31*0e42dee6Sartem  */
32*0e42dee6Sartem #ifdef	__cplusplus
33*0e42dee6Sartem extern "C" {
34*0e42dee6Sartem #endif
35*0e42dee6Sartem 
36*0e42dee6Sartem #include <stdio.h>
37*0e42dee6Sartem #include <sys/types.h>
38*0e42dee6Sartem #include <libnvpair.h>
39*0e42dee6Sartem #include <libfstyp.h>
40*0e42dee6Sartem 
41*0e42dee6Sartem typedef struct fstyp_mod_handle *fstyp_mod_handle_t;
42*0e42dee6Sartem 
43*0e42dee6Sartem /*
44*0e42dee6Sartem  * Modules are must to export these functions.
45*0e42dee6Sartem  * fstyp_mod_dump() is optional.
46*0e42dee6Sartem  */
47*0e42dee6Sartem int fstyp_mod_init(int fd, off64_t offset, fstyp_mod_handle_t *handle);
48*0e42dee6Sartem void fstyp_mod_fini(fstyp_mod_handle_t handle);
49*0e42dee6Sartem int fstyp_mod_ident(fstyp_mod_handle_t handle);
50*0e42dee6Sartem int fstyp_mod_get_attr(fstyp_mod_handle_t handle, nvlist_t **attr);
51*0e42dee6Sartem int fstyp_mod_dump(fstyp_mod_handle_t handle, FILE *fout, FILE *ferr);
52*0e42dee6Sartem 
53*0e42dee6Sartem #ifdef __cplusplus
54*0e42dee6Sartem }
55*0e42dee6Sartem #endif
56*0e42dee6Sartem 
57*0e42dee6Sartem #endif /* _LIBFSTYP_MODULE_H */
58