1894Stalley /* 2894Stalley * CDDL HEADER START 3894Stalley * 4894Stalley * The contents of this file are subject to the terms of the 5894Stalley * Common Development and Distribution License, Version 1.0 only 6894Stalley * (the "License"). You may not use this file except in compliance 7894Stalley * with the License. 8894Stalley * 9894Stalley * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10894Stalley * or http://www.opensolaris.org/os/licensing. 11894Stalley * See the License for the specific language governing permissions 12894Stalley * and limitations under the License. 13894Stalley * 14894Stalley * When distributing Covered Code, include this CDDL HEADER in each 15894Stalley * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16894Stalley * If applicable, add the following below this CDDL HEADER, with the 17894Stalley * fields enclosed by brackets "[]" replaced with your own identifying 18894Stalley * information: Portions Copyright [yyyy] [name of copyright owner] 19894Stalley * 20894Stalley * CDDL HEADER END 21894Stalley */ 22894Stalley /* 23*1206Stalley * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24894Stalley * Use is subject to license terms. 25894Stalley */ 26894Stalley 27894Stalley #ifndef _LIBZFS_JNI_IPOOL_H 28894Stalley #define _LIBZFS_JNI_IPOOL_H 29894Stalley 30894Stalley #pragma ident "%Z%%M% %I% %E% SMI" 31894Stalley 32894Stalley #ifdef __cplusplus 33894Stalley extern "C" { 34894Stalley #endif 35894Stalley 36894Stalley /* 37894Stalley * Types 38894Stalley */ 39894Stalley 40894Stalley /* Callback function for importable pool iteration */ 41*1206Stalley typedef int (*zjni_ipool_iter_f)(nvlist_t *config, void *data); 42894Stalley 43894Stalley /* 44894Stalley * Function prototypes 45894Stalley */ 46894Stalley 47894Stalley extern int zjni_ipool_iter( 48894Stalley int argc, char **argv, zjni_ipool_iter_f func, void *data); 49*1206Stalley extern char *zjni_vdev_state_to_str(vdev_state_t state); 50*1206Stalley extern char *zjni_vdev_aux_to_str(vdev_aux_t aux); 51*1206Stalley extern char *zjni_pool_state_to_str(pool_state_t state); 52*1206Stalley extern char *zjni_pool_status_to_str(zpool_status_t status); 53894Stalley 54894Stalley #ifdef __cplusplus 55894Stalley } 56894Stalley #endif 57894Stalley 58894Stalley #endif /* _LIBZFS_JNI_IPOOL_H */ 59