fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * The contents of this file are subject to the terms of the
bfe5f5a4bed2da6ba708c3b046a37de8b4568d4ftalley * Common Development and Distribution License (the "License").
bfe5f5a4bed2da6ba708c3b046a37de8b4568d4ftalley * You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens * or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens * and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens * fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens * information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens *
fa9e4066f08beec538e775443c5be79dd423fcabahrens * CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
bfe5f5a4bed2da6ba708c3b046a37de8b4568d4ftalley
fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
bfe5f5a4bed2da6ba708c3b046a37de8b4568d4ftalley * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#ifndef _LIBZFS_JNI_DATASET_H
fa9e4066f08beec538e775443c5be79dd423fcabahrens#define _LIBZFS_JNI_DATASET_H
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#pragma ident "%Z%%M% %I% %E% SMI"
fa9e4066f08beec538e775443c5be79dd423fcabahrens
bfe5f5a4bed2da6ba708c3b046a37de8b4568d4ftalley#include <libzfs_jni_util.h>
bfe5f5a4bed2da6ba708c3b046a37de8b4568d4ftalley#include <libzfs.h>
bfe5f5a4bed2da6ba708c3b046a37de8b4568d4ftalley
fa9e4066f08beec538e775443c5be79dd423fcabahrens#ifdef __cplusplus
fa9e4066f08beec538e775443c5be79dd423fcabahrensextern "C" {
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Types
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrenstypedef struct zjni_DatasetArrayCallbackData {
fa9e4066f08beec538e775443c5be79dd423fcabahrens zjni_ArrayCallbackData_t data;
fa9e4066f08beec538e775443c5be79dd423fcabahrens zfs_type_t typemask;
fa9e4066f08beec538e775443c5be79dd423fcabahrens} zjni_DatasetArrayCallbackData_t;
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens/*
fa9e4066f08beec538e775443c5be79dd423fcabahrens * Function prototypes
fa9e4066f08beec538e775443c5be79dd423fcabahrens */
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensjobjectArray zjni_get_Datasets_below(JNIEnv *, jstring,
fa9e4066f08beec538e775443c5be79dd423fcabahrens zfs_type_t, zfs_type_t, char *);
fa9e4066f08beec538e775443c5be79dd423fcabahrensjobjectArray zjni_get_Datasets_dependents(JNIEnv *, jobjectArray);
fa9e4066f08beec538e775443c5be79dd423fcabahrensjobject zjni_get_Dataset(JNIEnv *, jstring, zfs_type_t);
32f884e0ef76c8ab2a6e26895696620c8d49ad05talleyint zjni_create_add_Pool(zpool_handle_t *, void *);
fa9e4066f08beec538e775443c5be79dd423fcabahrensint zjni_create_add_Dataset(zfs_handle_t *, void *);
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#ifdef __cplusplus
fa9e4066f08beec538e775443c5be79dd423fcabahrens}
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#endif /* _LIBZFS_JNI_DATASET_H */