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