1c8e9ed14Stalley /* 2c8e9ed14Stalley * CDDL HEADER START 3c8e9ed14Stalley * 4c8e9ed14Stalley * The contents of this file are subject to the terms of the 5c8e9ed14Stalley * Common Development and Distribution License, Version 1.0 only 6c8e9ed14Stalley * (the "License"). You may not use this file except in compliance 7c8e9ed14Stalley * with the License. 8c8e9ed14Stalley * 9c8e9ed14Stalley * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10c8e9ed14Stalley * or http://www.opensolaris.org/os/licensing. 11c8e9ed14Stalley * See the License for the specific language governing permissions 12c8e9ed14Stalley * and limitations under the License. 13c8e9ed14Stalley * 14c8e9ed14Stalley * When distributing Covered Code, include this CDDL HEADER in each 15c8e9ed14Stalley * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16c8e9ed14Stalley * If applicable, add the following below this CDDL HEADER, with the 17c8e9ed14Stalley * fields enclosed by brackets "[]" replaced with your own identifying 18c8e9ed14Stalley * information: Portions Copyright [yyyy] [name of copyright owner] 19c8e9ed14Stalley * 20c8e9ed14Stalley * CDDL HEADER END 21c8e9ed14Stalley */ 22c8e9ed14Stalley /* 23*fbfd10ffStalley * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24c8e9ed14Stalley * Use is subject to license terms. 25c8e9ed14Stalley */ 26c8e9ed14Stalley 27c8e9ed14Stalley #ifndef _LIBZFS_JNI_IPOOL_H 28c8e9ed14Stalley #define _LIBZFS_JNI_IPOOL_H 29c8e9ed14Stalley 30c8e9ed14Stalley #ifdef __cplusplus 31c8e9ed14Stalley extern "C" { 32c8e9ed14Stalley #endif 33c8e9ed14Stalley 34c8e9ed14Stalley /* 35c8e9ed14Stalley * Types 36c8e9ed14Stalley */ 37c8e9ed14Stalley 38c8e9ed14Stalley /* Callback function for importable pool iteration */ 39*fbfd10ffStalley typedef int (*zjni_ipool_iter_f)(nvlist_t *config, void *data); 40c8e9ed14Stalley 41c8e9ed14Stalley /* 42c8e9ed14Stalley * Function prototypes 43c8e9ed14Stalley */ 44c8e9ed14Stalley 45c8e9ed14Stalley extern int zjni_ipool_iter( 46c8e9ed14Stalley int argc, char **argv, zjni_ipool_iter_f func, void *data); 47*fbfd10ffStalley extern char *zjni_vdev_state_to_str(vdev_state_t state); 48*fbfd10ffStalley extern char *zjni_vdev_aux_to_str(vdev_aux_t aux); 49*fbfd10ffStalley extern char *zjni_pool_state_to_str(pool_state_t state); 50*fbfd10ffStalley extern char *zjni_pool_status_to_str(zpool_status_t status); 51c8e9ed14Stalley 52c8e9ed14Stalley #ifdef __cplusplus 53c8e9ed14Stalley } 54c8e9ed14Stalley #endif 55c8e9ed14Stalley 56c8e9ed14Stalley #endif /* _LIBZFS_JNI_IPOOL_H */ 57