1789Sahrens /* 2789Sahrens * CDDL HEADER START 3789Sahrens * 4789Sahrens * The contents of this file are subject to the terms of the 51499Stalley * Common Development and Distribution License (the "License"). 61499Stalley * You may not use this file except in compliance with the License. 7789Sahrens * 8789Sahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9789Sahrens * or http://www.opensolaris.org/os/licensing. 10789Sahrens * See the License for the specific language governing permissions 11789Sahrens * and limitations under the License. 12789Sahrens * 13789Sahrens * When distributing Covered Code, include this CDDL HEADER in each 14789Sahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15789Sahrens * If applicable, add the following below this CDDL HEADER, with the 16789Sahrens * fields enclosed by brackets "[]" replaced with your own identifying 17789Sahrens * information: Portions Copyright [yyyy] [name of copyright owner] 18789Sahrens * 19789Sahrens * CDDL HEADER END 20789Sahrens */ 211499Stalley 22789Sahrens /* 231499Stalley * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24789Sahrens * Use is subject to license terms. 25789Sahrens */ 26789Sahrens 27789Sahrens #ifndef _LIBZFS_JNI_DATASET_H 28789Sahrens #define _LIBZFS_JNI_DATASET_H 29789Sahrens 30789Sahrens #pragma ident "%Z%%M% %I% %E% SMI" 31789Sahrens 321499Stalley #include <libzfs_jni_util.h> 331499Stalley #include <libzfs.h> 341499Stalley 35789Sahrens #ifdef __cplusplus 36789Sahrens extern "C" { 37789Sahrens #endif 38789Sahrens 39789Sahrens /* 40789Sahrens * Types 41789Sahrens */ 42789Sahrens 43789Sahrens typedef struct zjni_DatasetArrayCallbackData { 44789Sahrens zjni_ArrayCallbackData_t data; 45789Sahrens zfs_type_t typemask; 46789Sahrens } zjni_DatasetArrayCallbackData_t; 47789Sahrens 48789Sahrens /* 49789Sahrens * Function prototypes 50789Sahrens */ 51789Sahrens 52789Sahrens jobjectArray zjni_get_Datasets_below(JNIEnv *, jstring, 53789Sahrens zfs_type_t, zfs_type_t, char *); 54789Sahrens jobjectArray zjni_get_Datasets_dependents(JNIEnv *, jobjectArray); 55789Sahrens jobject zjni_get_Dataset(JNIEnv *, jstring, zfs_type_t); 56*1643Stalley int zjni_create_add_Pool(zpool_handle_t *, void *); 57789Sahrens int zjni_create_add_Dataset(zfs_handle_t *, void *); 58789Sahrens 59789Sahrens #ifdef __cplusplus 60789Sahrens } 61789Sahrens #endif 62789Sahrens 63789Sahrens #endif /* _LIBZFS_JNI_DATASET_H */ 64